Adds host in dumped http flows info

Implements #1988
This commit is contained in:
Simone Mainardi 2018-09-07 19:15:52 +02:00
parent 11984747d5
commit c0ae77e43a
3 changed files with 18 additions and 6 deletions

View file

@ -192,7 +192,13 @@ if(flows_stats == nil) then flows_stats = { } end
for key, value in ipairs(flows_stats) do
local info = ""
if(not isEmptyString(flows_stats[key]["info"])) then
info = shortenString(flows_stats[key]["info"])
info = flows_stats[key]["info"]
if not isEmptyString(flows_stats[key]["host_server_name"]) then
info = info:gsub(flows_stats[key]["host_server_name"], '')
end
info = shortenString(info)
elseif(not isEmptyString(flows_stats[key]["icmp"])) then
info = getICMPTypeCode(flows_stats[key]["icmp"])
elseif(flows_stats[key]["proto.ndpi"] == "SIP") then