diff src/stream/ngx_stream_upstream.h @ 6184:fa663739e115

Stream: client-side PROXY protocol. The new directive "proxy_protocol" toggles sending out PROXY protocol header to upstream once connection is established.
author Roman Arutyunyan <arut@nginx.com>
date Tue, 16 Jun 2015 13:45:16 +0300
parents 61d7ae76647d
children 24488e6db782
line wrap: on
line diff
--- a/src/stream/ngx_stream_upstream.h	Tue Jun 16 09:02:45 2015 +0300
+++ b/src/stream/ngx_stream_upstream.h	Tue Jun 16 13:45:16 2015 +0300
@@ -86,6 +86,8 @@
 #if (NGX_STREAM_SSL)
     ngx_str_t                          ssl_name;
 #endif
+    ngx_uint_t                         proxy_protocol;
+                                               /* unsigned  proxy_protocol:1; */
 } ngx_stream_upstream_t;