comparison src/http/ngx_http.c @ 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 01e2a5bcdd8f
children b490bfbf8cfa
comparison
equal deleted inserted replaced
5604:22d485944c20 5605:3a72b1805c52
1847 addrs[i].conf.ssl = addr[i].opt.ssl; 1847 addrs[i].conf.ssl = addr[i].opt.ssl;
1848 #endif 1848 #endif
1849 #if (NGX_HTTP_SPDY) 1849 #if (NGX_HTTP_SPDY)
1850 addrs[i].conf.spdy = addr[i].opt.spdy; 1850 addrs[i].conf.spdy = addr[i].opt.spdy;
1851 #endif 1851 #endif
1852 addrs[i].conf.proxy_protocol = addr[i].opt.proxy_protocol;
1852 1853
1853 if (addr[i].hash.buckets == NULL 1854 if (addr[i].hash.buckets == NULL
1854 && (addr[i].wc_head == NULL 1855 && (addr[i].wc_head == NULL
1855 || addr[i].wc_head->hash.buckets == NULL) 1856 || addr[i].wc_head->hash.buckets == NULL)
1856 && (addr[i].wc_tail == NULL 1857 && (addr[i].wc_tail == NULL