Fixes unescaped dots in lua string.find methods

This commit is contained in:
Simone Mainardi 2016-02-18 19:52:44 +01:00
parent 9e0d32108c
commit 5fe6d42bb4

View file

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