mirror of
https://github.com/ntop/ntopng.git
synced 2026-05-05 10:41:34 +00:00
Removed the mac/device type field from the asset details page when not defined (#9915)
This commit is contained in:
parent
0d56f1674a
commit
315a3c4de0
1 changed files with 6 additions and 4 deletions
|
|
@ -572,10 +572,12 @@ function get_symbolic_mac_rev(mac_address)
|
|||
return (magic_macs[mac_address])
|
||||
else
|
||||
local m = string.sub(mac_address, 1, 8)
|
||||
local s = get_mac_classification(m)
|
||||
|
||||
if ((s ~= nil) and (s ~= m)) then
|
||||
return (mac_address .. " [" .. trimSpace(s) .. "]")
|
||||
|
||||
if not isEmptyString(m) then
|
||||
local s = get_mac_classification(m)
|
||||
if ((s ~= nil) and (s ~= m)) then
|
||||
return (mac_address .. " [" .. trimSpace(s) .. "]")
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue