From abd1b0a76d0ef6655d17caf90bea8937802fd5da Mon Sep 17 00:00:00 2001 From: Dmitry Volyntsev Date: Tue, 6 Sep 2016 21:28:16 +0300 Subject: Stream: the "proxy_protocol" parameter of the "listen" directive. --- src/stream/ngx_stream.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/stream/ngx_stream.c') diff --git a/src/stream/ngx_stream.c b/src/stream/ngx_stream.c index c19517120..873e102d7 100644 --- a/src/stream/ngx_stream.c +++ b/src/stream/ngx_stream.c @@ -455,6 +455,7 @@ ngx_stream_add_addrs(ngx_conf_t *cf, ngx_stream_port_t *stport, #if (NGX_STREAM_SSL) addrs[i].conf.ssl = addr[i].opt.ssl; #endif + addrs[i].conf.proxy_protocol = addr[i].opt.proxy_protocol; len = ngx_sock_ntop(&addr[i].opt.sockaddr.sockaddr, addr[i].opt.socklen, buf, NGX_SOCKADDR_STRLEN, 1); @@ -504,6 +505,7 @@ ngx_stream_add_addrs6(ngx_conf_t *cf, ngx_stream_port_t *stport, #if (NGX_STREAM_SSL) addrs6[i].conf.ssl = addr[i].opt.ssl; #endif + addrs6[i].conf.proxy_protocol = addr[i].opt.proxy_protocol; len = ngx_sock_ntop(&addr[i].opt.sockaddr.sockaddr, addr[i].opt.socklen, buf, NGX_SOCKADDR_STRLEN, 1); -- cgit