Mercurial > hg > nginx
comparison src/mail/ngx_mail_core_module.c @ 7794:12ea1de7d87c
Mail: parsing of the PROXY protocol from clients.
Activated with the "proxy_protocol" parameter of the "listen" directive.
Obtained information is passed to the auth_http script in Proxy-Protocol-Addr,
Proxy-Protocol-Port, Proxy-Protocol-Server-Addr, and Proxy-Protocol-Server-Port
headers.
author | Maxim Dounin <mdounin@mdounin.ru> |
---|---|
date | Fri, 05 Mar 2021 17:16:24 +0300 |
parents | 4f9b72a229c1 |
children | ec1071830799 |
comparison
equal
deleted
inserted
replaced
7793:44ebeeceb70e | 7794:12ea1de7d87c |
---|---|
546 &value[i].data[13]); | 546 &value[i].data[13]); |
547 return NGX_CONF_ERROR; | 547 return NGX_CONF_ERROR; |
548 #endif | 548 #endif |
549 } | 549 } |
550 | 550 |
551 if (ngx_strcmp(value[i].data, "proxy_protocol") == 0) { | |
552 ls->proxy_protocol = 1; | |
553 continue; | |
554 } | |
555 | |
551 ngx_conf_log_error(NGX_LOG_EMERG, cf, 0, | 556 ngx_conf_log_error(NGX_LOG_EMERG, cf, 0, |
552 "the invalid \"%V\" parameter", &value[i]); | 557 "the invalid \"%V\" parameter", &value[i]); |
553 return NGX_CONF_ERROR; | 558 return NGX_CONF_ERROR; |
554 } | 559 } |
555 | 560 |