mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-30 16:09:32 +00:00
Handle mac addresses which are already formatted
This commit is contained in:
parent
6adb699c3a
commit
046027f859
1 changed files with 1 additions and 0 deletions
|
|
@ -349,6 +349,7 @@ end
|
|||
|
||||
local function dt_format_mac(mac)
|
||||
if mac == nil then return "" end
|
||||
if type(mac) == "string" and isMacAddress(mac) then return mac end
|
||||
mac = tonumber(mac)
|
||||
if not mac or mac == 0 then return "" end
|
||||
return ntop.decodeMac64(mac)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue