parse real ip

This commit is contained in:
Seth Pollack 2017-09-08 15:17:08 -04:00
parent 7b4d8cb1c3
commit c6d5c5557d

View file

@ -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 }}