We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fa5bf74 commit 3492d06Copy full SHA for 3492d06
init.lua
@@ -15,10 +15,7 @@ attacklog = optionIsOn(attacklog)
15
CCDeny = optionIsOn(CCDeny)
16
Redirect=optionIsOn(Redirect)
17
function getClientIp()
18
- IP = ngx.req.get_headers()["X-Real-IP"]
19
- if IP == nil then
20
- IP = ngx.var.remote_addr
21
- end
+ IP = ngx.var.remote_addr
22
if IP == nil then
23
IP = "unknown"
24
end
0 commit comments