Fixed PROXY protocol on IPv6 sockets (ticket #858).

This commit is contained in:
Maxim Dounin 2015-12-17 16:39:02 +03:00
parent 852a565be3
commit 9973e36944

View File

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