diff options
author | Roman Arutyunyan <arut@nginx.com> | 2014-03-17 17:41:24 +0400 |
---|---|---|
committer | Roman Arutyunyan <arut@nginx.com> | 2014-03-17 17:41:24 +0400 |
commit | 0b5f3297849c6061cf07b359e8b42768889e28cd (patch) | |
tree | 5ae00cb3fd666a763e76baef6598a2edc577734e /src/http/ngx_http_core_module.h | |
parent | 2f917b6d0636bd62ab0dfce0cad28148b0e9b002 (diff) | |
download | nginx-0b5f3297849c6061cf07b359e8b42768889e28cd.tar.gz nginx-0b5f3297849c6061cf07b359e8b42768889e28cd.zip |
Added server-side support for PROXY protocol v1 (ticket #355).
Client address specified in the PROXY protocol header is now
saved in the $proxy_protocol_addr variable and can be used in
the realip module.
This is currently not implemented for mail.
Diffstat (limited to 'src/http/ngx_http_core_module.h')
-rw-r--r-- | src/http/ngx_http_core_module.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/http/ngx_http_core_module.h b/src/http/ngx_http_core_module.h index 220c94ee4..799d2fe0d 100644 --- a/src/http/ngx_http_core_module.h +++ b/src/http/ngx_http_core_module.h @@ -82,6 +82,7 @@ typedef struct { unsigned ipv6only:1; #endif unsigned so_keepalive:2; + unsigned proxy_protocol:1; int backlog; int rcvbuf; @@ -243,6 +244,7 @@ struct ngx_http_addr_conf_s { #if (NGX_HTTP_SPDY) unsigned spdy:1; #endif + unsigned proxy_protocol:1; }; |