diff src/http/ngx_http.c @ 6331:ceeb1edb3018

Fixed PROXY protocol on IPv6 sockets (ticket #858).
author Maxim Dounin <mdounin@mdounin.ru>
date Thu, 17 Dec 2015 16:39:02 +0300
parents 257b51c37c5a
children 0f203a2af17c
line wrap: on
line diff
--- 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_
 #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