mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-29 07:29:32 +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
|
|
@ -56,7 +56,7 @@ for _, flow in ipairs(flows_stats) do
|
|||
source = cli_key
|
||||
|
||||
if not hosts[source] then
|
||||
hosts[source] = {name = host2name(flow["cli.ip"], flow["cli.vlan"])}
|
||||
hosts[source] = {name = ip2label(flow["cli.ip"], flow["cli.vlan"])}
|
||||
end
|
||||
end
|
||||
|
||||
|
|
@ -74,7 +74,7 @@ for _, flow in ipairs(flows_stats) do
|
|||
target = cli_key
|
||||
|
||||
if not hosts[target] then
|
||||
hosts[target] = {name = host2name(flow["srv.ip"], flow["srv.vlan"])}
|
||||
hosts[target] = {name = ip2label(flow["srv.ip"], flow["srv.vlan"])}
|
||||
end
|
||||
end
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue