Fixes exporter ip not converted correctly

This commit is contained in:
Matteo Biscosi 2025-09-04 09:57:39 +02:00
parent 6fa1473fab
commit 402e33ee44
2 changed files with 7 additions and 0 deletions

View file

@ -989,6 +989,9 @@ function format_portidx_name(device_ip, portidx, short_version)
-- SNMP is available only with Pro version at least
if ntop.isPro() then
if tonumber(device_ip) then
device_ip = ntop.inet_ntoa(device_ip)
end
local cached_dev = _snmp_devices[device_ip]
if (cached_dev == nil) then