Mercurial > hg > nginx
comparison 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 |
comparison
equal
deleted
inserted
replaced
6183:4dcffe43a7ea | 6184:fa663739e115 |
---|---|
84 ngx_buf_t upstream_buf; | 84 ngx_buf_t upstream_buf; |
85 off_t received; | 85 off_t received; |
86 #if (NGX_STREAM_SSL) | 86 #if (NGX_STREAM_SSL) |
87 ngx_str_t ssl_name; | 87 ngx_str_t ssl_name; |
88 #endif | 88 #endif |
89 ngx_uint_t proxy_protocol; | |
90 /* unsigned proxy_protocol:1; */ | |
89 } ngx_stream_upstream_t; | 91 } ngx_stream_upstream_t; |
90 | 92 |
91 | 93 |
92 ngx_stream_upstream_srv_conf_t *ngx_stream_upstream_add(ngx_conf_t *cf, | 94 ngx_stream_upstream_srv_conf_t *ngx_stream_upstream_add(ngx_conf_t *cf, |
93 ngx_url_t *u, ngx_uint_t flags); | 95 ngx_url_t *u, ngx_uint_t flags); |