Commit 999d5aa6 by Joneq

修改代码

parent 564385f3
Showing with 3 additions and 0 deletions
...@@ -71,6 +71,9 @@ end ...@@ -71,6 +71,9 @@ end
-- 获取真实ip -- 获取真实ip
user_ip = reqhandle.GetRealIp() user_ip = reqhandle.GetRealIp()
ngx.say(user_ip)
ngx.exit(ngx.HTTP_FORBIDDEN)
-- 获取请求头 -- 获取请求头
u_agent = ngx.req.get_headers().user_agent u_agent = ngx.req.get_headers().user_agent
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment