Implements interface.findFlowByTuple to fix issues with ICMP

Fixes #2415
This commit is contained in:
Simone Mainardi 2019-02-27 11:39:02 +01:00
parent 63b15acf83
commit 2fd5a75b6a
10 changed files with 124 additions and 69 deletions

View file

@ -224,13 +224,14 @@ for key, value in ipairs(flows_stats) do
-- safety checks against injections
info = noHtml(info)
info = info:gsub('"', '')
local alt_info = info
if italic then
info = string.format("<i>%s</i>", info)
end
info = shortenString(info)
flows_stats[key]["info"] = info
flows_stats[key]["info"] = "<span title='"..alt_info.."'>"..info.."</span>"
if(flows_stats[key]["profile"] ~= nil) then
flows_stats[key]["info"] = "<span class='label label-primary'>"..flows_stats[key]["profile"].."</span> "..info