mirror of
https://github.com/ntop/ntopng.git
synced 2026-05-06 03:45:26 +00:00
function fix
This commit is contained in:
parent
85bd08987b
commit
dbf6e0b531
1 changed files with 1 additions and 1 deletions
|
|
@ -339,7 +339,7 @@ end
|
|||
function isMacAddress(address)
|
||||
if (address == nil) then return false end
|
||||
|
||||
if(ends(address, "_v4") or ends(address, "_v6")
|
||||
if(string.ends(address, "_v4") or string.ends(address, "_v6")
|
||||
or (string.match(address, "^%x%x:%x%x:%x%x:%x%x:%x%x:%x%x$") ~= nil)
|
||||
or (string.match(address, "^%x%x:%x%x:%x%x:%x%x:%x%x:%x%x%@%d+$") ~= nil)) then
|
||||
return true
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue