fix a bug

pull/63/merge^2
ibuler 2015-09-16 20:22:32 +08:00
parent 790acc7a65
commit 2fb6dc226e
1 changed files with 1 additions and 1 deletions

View File

@ -281,7 +281,7 @@ function whiteip()
if next(ipWhitelist) ~= nil then
ip = getClientIp()
for _,wip in pairs(ipWhitelist) do
if ip = wip or innet(ip, wip) then
if ip == wip or innet(ip, wip) then
return true
end
end