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

@ -167,7 +167,7 @@ if (_GET["hosts"] ~= nil) then
vlan_id = " "
end
local name = host2name(host_ip, vlan_id)
local name = ip2label(host_ip, vlan_id)
print ("\t{\"name\": \"" .. name .. "\", \"ip\": \"" .. host_ip .. "\", \"vlan\": \"" .. vlan_id .. "\"}")
node_size = node_size + 1