Fixes service/periodicity map not working correctly with ip and macs

This commit is contained in:
MatteoBiscosi 2021-08-03 11:29:16 +02:00
parent 994eded6d4
commit de0060da35
2 changed files with 15 additions and 9 deletions

View file

@ -47,8 +47,13 @@ function macAddIcon(mac, pre)
return pre
end
function mac2link(mac)
function mac2link(mac, cached_name)
local macaddress = mac["mac"]
if cached_name then
macaddress = mac2label(macaddress)
end
return "<A HREF='"..ntop.getHttpPrefix()..'/lua/mac_details.lua?'..hostinfo2url(mac).."' title='"..macaddress.."'>"..macaddress..'</A>'
end