Mercurial > hg > nginx
comparison 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 |
comparison
equal
deleted
inserted
replaced
6529:cb8177ca0990 | 6530:1d0e03db9f8e |
---|---|
131 | 131 |
132 | 132 |
133 typedef struct { | 133 typedef struct { |
134 ngx_addr_t *addr; | 134 ngx_addr_t *addr; |
135 ngx_http_complex_value_t *value; | 135 ngx_http_complex_value_t *value; |
136 #if (NGX_HAVE_TRANSPARENT_PROXY) | |
137 ngx_uint_t transparent; /* unsigned transparent:1; */ | |
138 #endif | |
136 } ngx_http_upstream_local_t; | 139 } ngx_http_upstream_local_t; |
137 | 140 |
138 | 141 |
139 typedef struct { | 142 typedef struct { |
140 ngx_http_upstream_srv_conf_t *upstream; | 143 ngx_http_upstream_srv_conf_t *upstream; |