Temporary fix for live pcap extraction with n2disk

This commit is contained in:
MatteoBiscosi 2021-08-16 17:23:22 +02:00
parent c2bd4c118c
commit afc1948ff1
2 changed files with 4 additions and 2 deletions

View file

@ -16,7 +16,7 @@ local rest_utils = require("rest_utils")
-- NOTE: in case of invalid login, no error is returned but redirected to login
--
local ifid = tonumber(_GET["ifid"])
local ifid = _GET["ifid"]
local filter = _GET["bpf_filter"]
local time_from = tonumber(_GET["epoch_begin"])
local time_to = tonumber(_GET["epoch_end"])
@ -43,6 +43,8 @@ end
interface.select(ifid)
ifid = tonumber(ifid)
if filter == nil then
filter = ""
end