aboutsummaryrefslogtreecommitdiff
path: root/src/stream/ngx_stream_upstream.h
diff options
context:
space:
mode:
authorRoman Arutyunyan <arut@nginx.com>2015-06-16 13:45:16 +0300
committerRoman Arutyunyan <arut@nginx.com>2015-06-16 13:45:16 +0300
commit3ed1b3b5b0ab92666d1e24f9161561d580421f17 (patch)
treefa6c99aa73ba6662869531cdd38e1f85fc093a51 /src/stream/ngx_stream_upstream.h
parentf50f83a2cfce53c29363fb638054fd47dd6ae61f (diff)
downloadnginx-3ed1b3b5b0ab92666d1e24f9161561d580421f17.tar.gz
nginx-3ed1b3b5b0ab92666d1e24f9161561d580421f17.zip
Stream: client-side PROXY protocol.
The new directive "proxy_protocol" toggles sending out PROXY protocol header to upstream once connection is established.
Diffstat (limited to 'src/stream/ngx_stream_upstream.h')
-rw-r--r--src/stream/ngx_stream_upstream.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/stream/ngx_stream_upstream.h b/src/stream/ngx_stream_upstream.h
index 83353edca..56325da02 100644
--- a/src/stream/ngx_stream_upstream.h
+++ b/src/stream/ngx_stream_upstream.h
@@ -86,6 +86,8 @@ typedef struct {
#if (NGX_STREAM_SSL)
ngx_str_t ssl_name;
#endif
+ ngx_uint_t proxy_protocol;
+ /* unsigned proxy_protocol:1; */
} ngx_stream_upstream_t;