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
|
|
@ -230,17 +230,6 @@ end
|
|||
|
||||
-- ##############################################
|
||||
|
||||
-- Simplified checker
|
||||
function isIPv6Address(ip)
|
||||
if(string.find(ip, ":") ~= nil) then
|
||||
return true
|
||||
end
|
||||
|
||||
return false
|
||||
end
|
||||
|
||||
-- ##############################################
|
||||
|
||||
function findString(str, tofind)
|
||||
if(str == nil) then return(nil) end
|
||||
if(tofind == nil) then return(nil) end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue