comparison src/http/ngx_http_core_module.h @ 5605:3a72b1805c52

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.
author Roman Arutyunyan <arut@nginx.com>
date Mon, 17 Mar 2014 17:41:24 +0400
parents 692afcea9d0d
children e491b26fa5a1
comparison
equal deleted inserted replaced
5604:22d485944c20 5605:3a72b1805c52
80 #endif 80 #endif
81 #if (NGX_HAVE_INET6 && defined IPV6_V6ONLY) 81 #if (NGX_HAVE_INET6 && defined IPV6_V6ONLY)
82 unsigned ipv6only:1; 82 unsigned ipv6only:1;
83 #endif 83 #endif
84 unsigned so_keepalive:2; 84 unsigned so_keepalive:2;
85 unsigned proxy_protocol:1;
85 86
86 int backlog; 87 int backlog;
87 int rcvbuf; 88 int rcvbuf;
88 int sndbuf; 89 int sndbuf;
89 #if (NGX_HAVE_SETFIB) 90 #if (NGX_HAVE_SETFIB)
241 unsigned ssl:1; 242 unsigned ssl:1;
242 #endif 243 #endif
243 #if (NGX_HTTP_SPDY) 244 #if (NGX_HTTP_SPDY)
244 unsigned spdy:1; 245 unsigned spdy:1;
245 #endif 246 #endif
247 unsigned proxy_protocol:1;
246 }; 248 };
247 249
248 250
249 typedef struct { 251 typedef struct {
250 in_addr_t addr; 252 in_addr_t addr;