mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-29 07:29:32 +00:00
Fixes mac href not added (#6376)
This commit is contained in:
parent
89154dbf4f
commit
3bda740db2
1 changed files with 11 additions and 6 deletions
|
|
@ -3172,12 +3172,17 @@ function get_symbolic_mac(mac_address, no_href, add_extra_info)
|
|||
else
|
||||
return '<a href="' .. ntop.getHttpPrefix() .. '/lua/mac_details.lua?host='..mac_address..'">' .. get_mac_classification(m) .. ":" .. t .. '</a>'
|
||||
end
|
||||
else
|
||||
if(add_extra_info == true) then
|
||||
return(get_mac_classification(m).."_"..t.." ("..macInfo(mac_address)..")")
|
||||
else
|
||||
return(get_mac_classification(m).."_"..t)
|
||||
end
|
||||
else
|
||||
local href = ""
|
||||
if not no_href then
|
||||
href = '<a href="' .. ntop.getHttpPrefix() .. '/lua/mac_details.lua?host='..mac_address..'">'
|
||||
end
|
||||
|
||||
if(add_extra_info == true) then
|
||||
return(href .. get_mac_classification(m).."_"..t.." ("..macInfo(mac_address)..")" .. "</a>")
|
||||
else
|
||||
return(href .. get_mac_classification(m).."_"..t .. "</a>")
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue