...
|
...
|
@@ -13,7 +13,7 @@ local local_cidr = { |
|
|
|
|
|
-- check if ip is local
|
|
|
-- depends on ngx.realIp from setup.lua
|
|
|
function M:check_local_access(ip)
|
|
|
function check_local_access(ip)
|
|
|
local is_local_ip = false
|
|
|
for i = 1, #local_cidr do
|
|
|
local is_in_cidr = iptool:pcall_check_ip_in_ipblock(ip, local_cidr[i],false)
|
...
|
...
|
|