diff options
author | Dmitry Volyntsev <xeioex@nginx.com> | 2016-09-06 21:28:16 +0300 |
---|---|---|
committer | Dmitry Volyntsev <xeioex@nginx.com> | 2016-09-06 21:28:16 +0300 |
commit | abd1b0a76d0ef6655d17caf90bea8937802fd5da (patch) | |
tree | 9f8aac46d628ecb56a26aac8dffbc370bcc03ccd /src/stream/ngx_stream.c | |
parent | 87aaac4ac56255dc79f666491144cad2b520944d (diff) | |
download | nginx-abd1b0a76d0ef6655d17caf90bea8937802fd5da.tar.gz nginx-abd1b0a76d0ef6655d17caf90bea8937802fd5da.zip |
Stream: the "proxy_protocol" parameter of the "listen" directive.
Diffstat (limited to 'src/stream/ngx_stream.c')
-rw-r--r-- | src/stream/ngx_stream.c | 2 |
1 files changed, 2 insertions, 0 deletions
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); |