Mercurial > hg > nginx
comparison src/core/ngx_connection.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 | 311803b21504 |
children | ccad84a174e0 |
comparison
equal
deleted
inserted
replaced
5604:22d485944c20 | 5605:3a72b1805c52 |
---|---|
136 ngx_pool_t *pool; | 136 ngx_pool_t *pool; |
137 | 137 |
138 struct sockaddr *sockaddr; | 138 struct sockaddr *sockaddr; |
139 socklen_t socklen; | 139 socklen_t socklen; |
140 ngx_str_t addr_text; | 140 ngx_str_t addr_text; |
141 | |
142 ngx_str_t proxy_protocol_addr; | |
141 | 143 |
142 #if (NGX_SSL) | 144 #if (NGX_SSL) |
143 ngx_ssl_connection_t *ssl; | 145 ngx_ssl_connection_t *ssl; |
144 #endif | 146 #endif |
145 | 147 |