mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-29 07:29:32 +00:00
Fixes unescaped dots in lua string.find methods
This commit is contained in:
parent
9e0d32108c
commit
5fe6d42bb4
1 changed files with 3 additions and 3 deletions
|
|
@ -841,7 +841,7 @@ function isBroadcastMulticast(ip)
|
|||
end
|
||||
|
||||
function isIPv4(ip)
|
||||
if string.find(ip, ".") then
|
||||
if string.find(ip, "%.") then
|
||||
return true
|
||||
end
|
||||
return false
|
||||
|
|
@ -849,8 +849,8 @@ end
|
|||
|
||||
|
||||
function isIPv6(ip)
|
||||
if string.find(ip, ".") then
|
||||
return false
|
||||
if string.find(ip, "%.") then
|
||||
return false
|
||||
end
|
||||
return true
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue