Merge pull request #1322 from sethpollack/realip

parse real ip
This commit is contained in:
Manuel Alejandro de Brito Fontes 2017-09-12 06:40:39 -07:00 committed by GitHub
commit 0a96924fc5

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