mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-29 23:49:33 +00:00
Fixed #4896 service map nodes have numerical label even though a symbolic name exists
This commit is contained in:
parent
31ef728242
commit
4586833114
6 changed files with 56 additions and 0 deletions
|
|
@ -1477,6 +1477,11 @@ function hostinfo2label(host_info)
|
|||
-- Name info from C (e.g. DHCP name)
|
||||
if not isEmptyString(host_info["name"]) then
|
||||
return host_info["name"]
|
||||
else
|
||||
local name = interface.getHostName(ip, host_info["vlan"])
|
||||
if name ~= nil and not isEmptyString(name) then
|
||||
return name
|
||||
end
|
||||
end
|
||||
|
||||
-- Try to get the resolved name
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue