|
|
local modname= ...
|
|
|
local M={}
|
|
|
_G[modname]=M
|
|
|
package.loaded[modname]=M
|
|
|
|
|
|
-- author: chunhua.zhang
|
|
|
-- only allow request from local ip
|
|
|
local iptool=require "iptool"
|
...
|
...
|
@@ -36,6 +31,6 @@ function M:check_local_access(ip) |
|
|
ngx.exit(403);
|
|
|
return
|
|
|
end
|
|
|
|
|
|
end
|
|
|
|
|
|
check_local_access() |
...
|
...
|
|