mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-29 15:39:33 +00:00
Use getResolvedAddress to get alert host information
This commit is contained in:
parent
9097333cf1
commit
c0083bde08
2 changed files with 6 additions and 5 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue