Mercurial > hg > nginx-quic
comparison src/http/ngx_http_core_module.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 | 0251f2f1dc93 |
children | 68c6cc832c76 |
comparison
equal
deleted
inserted
replaced
5604:22d485944c20 | 5605:3a72b1805c52 |
---|---|
4285 &value[n].data[13]); | 4285 &value[n].data[13]); |
4286 return NGX_CONF_ERROR; | 4286 return NGX_CONF_ERROR; |
4287 #endif | 4287 #endif |
4288 } | 4288 } |
4289 | 4289 |
4290 if (ngx_strcmp(value[n].data, "proxy_protocol") == 0) { | |
4291 lsopt.proxy_protocol = 1; | |
4292 continue; | |
4293 } | |
4294 | |
4290 ngx_conf_log_error(NGX_LOG_EMERG, cf, 0, | 4295 ngx_conf_log_error(NGX_LOG_EMERG, cf, 0, |
4291 "invalid parameter \"%V\"", &value[n]); | 4296 "invalid parameter \"%V\"", &value[n]); |
4292 return NGX_CONF_ERROR; | 4297 return NGX_CONF_ERROR; |
4293 } | 4298 } |
4294 | 4299 |