mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-29 23:49:33 +00:00
Fix IPv6 validator
This commit is contained in:
parent
3111b4a6e7
commit
03e3613e7e
7 changed files with 29 additions and 20 deletions
|
|
@ -94,10 +94,7 @@ end
|
|||
-- ##############################################
|
||||
|
||||
function isIPv6(ip)
|
||||
if((string.find(ip, ":")) and (not isMacAddress(ip))) then
|
||||
return true
|
||||
end
|
||||
return false
|
||||
return((not isEmptyString(ip)) and ntop.isIPv6(ip))
|
||||
end
|
||||
|
||||
-- ##############################################
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue