summaryrefslogtreecommitdiffhomepage
path: root/src/event/ngx_event_connect.h
diff options
context:
space:
mode:
authorRoman Arutyunyan <arut@nginx.com>2015-12-18 19:05:27 +0300
committerRoman Arutyunyan <arut@nginx.com>2015-12-18 19:05:27 +0300
commitbe79f5cb16eeb452e2a9e343a89f89b3b47bc5a2 (patch)
tree00ab618ce2f89cd97f91982cf822f74cc8e16754 /src/event/ngx_event_connect.h
parent77ec993fd7300423aab8f6c798082b9421f51a24 (diff)
downloadnginx-be79f5cb16eeb452e2a9e343a89f89b3b47bc5a2.tar.gz
nginx-be79f5cb16eeb452e2a9e343a89f89b3b47bc5a2.tar.bz2
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;
Diffstat (limited to 'src/event/ngx_event_connect.h')
-rw-r--r--src/event/ngx_event_connect.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/event/ngx_event_connect.h b/src/event/ngx_event_connect.h
index 1bacf820e..10b72a154 100644
--- a/src/event/ngx_event_connect.h
+++ b/src/event/ngx_event_connect.h
@@ -61,6 +61,9 @@ struct ngx_peer_connection_s {
ngx_log_t *log;
unsigned cached:1;
+#if (NGX_HAVE_TRANSPARENT_PROXY)
+ unsigned transparent:1;
+#endif
/* ngx_connection_log_error_e */
unsigned log_error:2;