Rework host label getters

This fixes inconsistencies across the ntopng gui

Addresses #3699
This commit is contained in:
emanuele-f 2020-05-07 17:46:06 +02:00
parent ebbe0155e3
commit ba5c64b107
28 changed files with 136 additions and 139 deletions

View file

@ -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