local ip, mask = val:match("^([^/]+)/([^/]+)$")
local bits = tonumber(mask)
- if bits and bits < 0 or bits > 32 then
+ if bits and (bits < 0 or bits > 32) then
return false
end
local ip, mask = val:match("^([^/]+)/([^/]+)$")
local bits = tonumber(mask)
- if bits and bits < 0 or bits > 128 then
+ if bits and (bits < 0 or bits > 128) then
return false
end