Fixes #5733 and the regressions introduced by 13d804e199

Updated code for new nDPI API
This commit is contained in:
Luca Deri 2021-08-07 18:23:44 +02:00
parent 14143d7690
commit aca352452e
6 changed files with 20 additions and 15 deletions

View file

@ -276,7 +276,7 @@ for _key, value in ipairs(flows_stats) do -- pairsByValues(vals, funct) do
record["column_ndpi"] = app -- can't set the hosts_stats hyperlink for viewed interfaces
if((not ifstats.isViewed) and (value["proto.ndpi_id"] ~= -1)) then
record["column_ndpi"] = "<A HREF='".. ntop.getHttpPrefix().."/lua/hosts_stats.lua?protocol=" .. value["proto.ndpi_id"] .."'>"..app.." " .. formatBreed(value["proto.ndpi_breed"], value["proto.is_tls"]) .."</A>"
record["column_ndpi"] = "<A HREF='".. ntop.getHttpPrefix().."/lua/hosts_stats.lua?protocol=" .. value["proto.ndpi_id"] .."'>"..app.." " .. formatBreed(value["proto.ndpi_breed"], value["proto.is_encrypted"]) .."</A>"
end
record["column_duration"] = secondsToTime(value["duration"])
record["column_bytes"] = value["bytes"]