mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-29 15:39:33 +00:00
Prevents host label from showing up when same as name
This commit is contained in:
parent
782f950b3a
commit
3a6e8f8797
1 changed files with 2 additions and 2 deletions
|
|
@ -234,7 +234,7 @@ for _key, _value in pairsByKeys(vals, funct) do
|
|||
|
||||
local host = interface.getHostInfo(hosts_stats[key].ip, hosts_stats[key].vlan)
|
||||
if((host ~= nil) and (host.has_dropbox_shares == true)) then
|
||||
column_ip = column_ip .."<i class='fa fa-dropbox'></i>"
|
||||
column_ip = column_ip .." <i class='fa fa-dropbox'></i> "
|
||||
end
|
||||
|
||||
if((host ~= nil) and (host.country ~= nil) and (host.country ~= "")) then
|
||||
|
|
@ -280,7 +280,7 @@ for _key, _value in pairsByKeys(vals, funct) do
|
|||
|
||||
if(value["ip"] ~= nil) then
|
||||
local label = getHostAltName(value["ip"], value["mac"])
|
||||
if(label ~= value["ip"]) then
|
||||
if label ~= value["ip"] and column_name ~= label then
|
||||
column_name = column_name .. " ["..label.."]"
|
||||
end
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue