Alert page improvements

This commit is contained in:
emanuele-f 2019-02-19 13:12:28 +01:00
parent ac5376fcdf
commit 2e92bcbd4e
3 changed files with 17 additions and 5 deletions

View file

@ -1504,10 +1504,15 @@ function host2name(name, vlan)
return name
end
function flowinfo2hostname(flow_info, host_type)
function flowinfo2hostname(flow_info, host_type, alerts_view)
local name
local orig_name
if alerts_view and not hasNindexSupport() then
-- do not return resolved name as it will hide the IP address
return(flow_info[host_type..".ip"])
end
if(host_type == "srv") then
if(flow_info["host_server_name"] ~= nil and flow_info["host_server_name"] ~= "") then
-- remove possible ports from the name