Fixes mac address not showing in network discovery page

This commit is contained in:
Matteo Biscosi 2023-04-05 09:18:45 +00:00
parent c3032be62d
commit 62ed5caf55
3 changed files with 3 additions and 3 deletions

View file

@ -123,7 +123,7 @@ for _, el in pairs(discovered["devices"]) do
..ternary(el["icon"], " " ..(el["icon"] or "").. " ", "")
..ternary(el["ghost"], " <font color=red>" ..(discover.ghost_icon or "").. "</font>", "")
rec.mac = [[<a href="]] ..ntop.getHttpPrefix().. [[/lua/mac_details.lua?host=]] ..el["mac"].. [[">]] ..get_symbolic_mac(el["mac"], true).. [[</a>]]
rec.mac_address = [[<a href="]] ..ntop.getHttpPrefix().. [[/lua/mac_details.lua?host=]] ..el["mac"].. [[">]] ..get_symbolic_mac(el["mac"], true).. [[</a>]]
rec.name = el.name
rec.info = el.info
rec.device = el["device_label"]