mirror of
https://github.com/ntop/ntopng.git
synced 2026-05-02 00:40:10 +00:00
Rework host label getters
This fixes inconsistencies across the ntopng gui Addresses #3699
This commit is contained in:
parent
ebbe0155e3
commit
ba5c64b107
28 changed files with 136 additions and 139 deletions
|
|
@ -75,13 +75,13 @@ elseif action == "set" or action == "del" then
|
|||
entry = host
|
||||
|
||||
local hinfo = hostkey2hostinfo(host)
|
||||
resolved = host2name(hinfo["host"], hinfo["vlan"])
|
||||
resolved = hostinfo2label(hinfo)
|
||||
|
||||
if peer ~= "" and peer ~= nil then
|
||||
entry = entry..','..peer
|
||||
|
||||
local hinfo = hostkey2hostinfo(peer)
|
||||
resolved = resolved..','..host2name(hinfo["host"], hinfo["vlan"])
|
||||
resolved = resolved..','..hostinfo2label(hinfo)
|
||||
end
|
||||
end
|
||||
|
||||
|
|
@ -94,7 +94,7 @@ elseif action == "set" or action == "del" then
|
|||
entry = entry..','..host
|
||||
|
||||
local hinfo = hostkey2hostinfo(host)
|
||||
resolved = resolved..','..host2name(hinfo["host"], hinfo["vlan"])
|
||||
resolved = resolved..','..hostinfo2label(hinfo)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue