mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-29 23:49:33 +00:00
Improved host label format: mac is hidden when IP address is present
This commit is contained in:
parent
c7dde58970
commit
a9af013ee8
1 changed files with 1 additions and 2 deletions
|
|
@ -72,7 +72,6 @@ function flowinfo2hostname(flow_info, host_type, alerts_view, add_hostname)
|
|||
end
|
||||
end
|
||||
|
||||
|
||||
local hostinfo = {
|
||||
host = flow_info[host_type .. ".ip"],
|
||||
label = flow_info[host_type .. ".host"],
|
||||
|
|
@ -84,7 +83,7 @@ function flowinfo2hostname(flow_info, host_type, alerts_view, add_hostname)
|
|||
|
||||
mac = flow_info[host_type .. ".mac"]
|
||||
|
||||
if not isEmptyString(mac) then
|
||||
if((hostinfo.host == nil) and (not isEmptyString(mac))) then
|
||||
hostinfo.mac = mac
|
||||
end
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue