mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-29 07:29:32 +00:00
Alert page improvements
This commit is contained in:
parent
ac5376fcdf
commit
2e92bcbd4e
3 changed files with 17 additions and 5 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue