Properly handles Host os without shadows

This commit is contained in:
Simone Mainardi 2019-01-25 14:28:15 +01:00
parent 50e32be5a7
commit d187b82560
10 changed files with 80 additions and 48 deletions

View file

@ -1386,6 +1386,7 @@ function getHostAltName(host_ip, host_mac)
end
alt_name = ntop.getHashCache(getHostAltNamesKey(), host_ip)
if (isEmptyString(alt_name) and (host_mac ~= nil)) then
alt_name = ntop.getHashCache(getHostAltNamesKey(), host_mac)
end