Authored by chunhua.zhang

bug fix

... ... @@ -12,7 +12,7 @@ local local_cidr = {
}
-- check if ip is local
-- depends on ngx.realIp from setup.lua
-- depends on ngx.real_ip from setup.lua
function check_local_access(ip)
local is_local_ip = false
for i = 1, #local_cidr do
... ... @@ -23,7 +23,7 @@ function check_local_access(ip)
end
end
if (ngx.realIp == nil or ngx.realIp == '') then
if (ngx.real_ip == nil or ngx.real_ip == '') then
return
end
... ...