Fix IPv6 validator

This commit is contained in:
emanuele-f 2019-12-30 15:44:47 +01:00
parent 3111b4a6e7
commit 03e3613e7e
7 changed files with 29 additions and 20 deletions

View file

@ -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
-- ##############################################