Set proto icon to lock only for encrypted flows (#5733)

This commit is contained in:
Alfredo Cardigliano 2021-08-06 10:28:19 +02:00
parent 65e1a400b6
commit 13d804e199
3 changed files with 7 additions and 3 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"]) .."</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_tls"]) .."</A>"
end
record["column_duration"] = secondsToTime(value["duration"])
record["column_bytes"] = value["bytes"]