Mercurial > hg > nginx
diff src/http/ngx_http_upstream.h @ 6530:1d0e03db9f8e
Upstream: the "transparent" parameter of proxy_bind and friends.
This parameter lets binding the proxy connection to a non-local address.
Upstream will see the connection as coming from that address.
When used with $remote_addr, upstream will accept the connection from real
client address.
Example:
proxy_bind $remote_addr transparent;
author | Roman Arutyunyan <arut@nginx.com> |
---|---|
date | Fri, 18 Dec 2015 19:05:27 +0300 |
parents | 91c8d990fb45 |
children | c131f20c9562 |
line wrap: on
line diff
--- a/src/http/ngx_http_upstream.h Wed Apr 13 15:42:47 2016 +0300 +++ b/src/http/ngx_http_upstream.h Fri Dec 18 19:05:27 2015 +0300 @@ -133,6 +133,9 @@ typedef struct { ngx_addr_t *addr; ngx_http_complex_value_t *value; +#if (NGX_HAVE_TRANSPARENT_PROXY) + ngx_uint_t transparent; /* unsigned transparent:1; */ +#endif } ngx_http_upstream_local_t;