Fixes ip resolution not updating the name (#7123)

This commit is contained in:
MatteoBiscosi 2023-01-25 11:30:48 +01:00
parent 1736e6e505
commit dcb03b07bd
2 changed files with 31 additions and 0 deletions

View file

@ -25,6 +25,7 @@ if((host_info ~= nil) and (host_info["host"] ~= nil)) then
if((host["ip"] == host["name"]) and ntop.shouldResolveHost(host["ip"])) then
-- Actively resolve host if resolution is enabled
host["name"] = resolveAddress(hostinfo)
interface.setHostResolvedName(hostinfo2hostkey(hostinfo), host["name"])
end
end
else