Use getResolvedAddress to get alert host information

This commit is contained in:
emanuele-f 2017-05-04 21:47:06 +02:00
parent 9097333cf1
commit c0083bde08
2 changed files with 6 additions and 5 deletions

View file

@ -1221,8 +1221,13 @@ end
-- #################################
-- NOTE: prefer the getResolvedAddress on this function
function resolveAddress(hostinfo)
local hostname = ntop.resolveName(hostinfo["host"])
if isEmptyString(hostname) then
-- Not resolved
return hostname
end
return hostVisualization(hostinfo["host"], hostname)
end