mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-29 07:29:32 +00:00
Fix host alias not shown in flows
This commit is contained in:
parent
660b982ad1
commit
4b1184acdb
1 changed files with 5 additions and 5 deletions
|
|
@ -1438,11 +1438,11 @@ function flowinfo2hostname(flow_info, host_type, alerts_view)
|
|||
end
|
||||
end
|
||||
|
||||
name = flow_info[host_type..".host"]
|
||||
|
||||
if((name == "") or (name == nil)) then
|
||||
name = flow_info[host_type..".ip"]
|
||||
end
|
||||
-- Do not use host name here as we need first to check if there is
|
||||
-- an host alias defined for the IP address in host2name. getResolvedAddress
|
||||
-- in host2name will return the host name if no alias is defined.
|
||||
--~ name = flow_info[host_type..".host"]
|
||||
name = flow_info[host_type..".ip"]
|
||||
|
||||
return(host2name(name, flow_info["vlan"]))
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue