parse real ip
This commit is contained in:
parent
7b4d8cb1c3
commit
c6d5c5557d
|
|
@ -156,6 +156,7 @@ http {
|
|||
|
||||
map {{ buildForwardedFor $cfg.ForwardedForHeader }} $the_real_ip {
|
||||
default {{ buildForwardedFor $cfg.ForwardedForHeader }};
|
||||
"~*(?<ip>[0-9\.]+).*" $ip;
|
||||
{{ if $cfg.UseProxyProtocol }}
|
||||
'' $proxy_protocol_addr;
|
||||
{{ else }}
|
||||
|
|
|
|||
Loading…
Reference in New Issue