fix a bug
parent
790acc7a65
commit
2fb6dc226e
2
init.lua
2
init.lua
|
@ -281,7 +281,7 @@ function whiteip()
|
||||||
if next(ipWhitelist) ~= nil then
|
if next(ipWhitelist) ~= nil then
|
||||||
ip = getClientIp()
|
ip = getClientIp()
|
||||||
for _,wip in pairs(ipWhitelist) do
|
for _,wip in pairs(ipWhitelist) do
|
||||||
if ip = wip or innet(ip, wip) then
|
if ip == wip or innet(ip, wip) then
|
||||||
return true
|
return true
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue