Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nginx/nginx.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaxim Dounin <mdounin@mdounin.ru>2015-12-17 16:39:02 +0300
committerMaxim Dounin <mdounin@mdounin.ru>2015-12-17 16:39:02 +0300
commit9973e3694447cc4814f46b02b45dea590bbc68ac (patch)
tree84386a24e8521a630606a56a142e287667121849 /src/http/ngx_http.c
parent852a565be3da502945b4d98866b6f92d6e6eade5 (diff)
Fixed PROXY protocol on IPv6 sockets (ticket #858).
Diffstat (limited to 'src/http/ngx_http.c')
-rw-r--r--src/http/ngx_http.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/http/ngx_http.c b/src/http/ngx_http.c
index d09e3f0ad..64af44760 100644
--- a/src/http/ngx_http.c
+++ b/src/http/ngx_http.c
@@ -1927,6 +1927,7 @@ ngx_http_add_addrs6(ngx_conf_t *cf, ngx_http_port_t *hport,
#if (NGX_HTTP_V2)
addrs6[i].conf.http2 = addr[i].opt.http2;
#endif
+ addrs6[i].conf.proxy_protocol = addr[i].opt.proxy_protocol;
if (addr[i].hash.buckets == NULL
&& (addr[i].wc_head == NULL