Mercurial > hg > nginx
comparison src/mail/ngx_mail.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 |
comparison
equal
deleted
inserted
replaced
7793:44ebeeceb70e | 7794:12ea1de7d87c |
---|---|
403 | 403 |
404 addrs[i].conf.ctx = addr[i].opt.ctx; | 404 addrs[i].conf.ctx = addr[i].opt.ctx; |
405 #if (NGX_MAIL_SSL) | 405 #if (NGX_MAIL_SSL) |
406 addrs[i].conf.ssl = addr[i].opt.ssl; | 406 addrs[i].conf.ssl = addr[i].opt.ssl; |
407 #endif | 407 #endif |
408 addrs[i].conf.proxy_protocol = addr[i].opt.proxy_protocol; | |
408 addrs[i].conf.addr_text = addr[i].opt.addr_text; | 409 addrs[i].conf.addr_text = addr[i].opt.addr_text; |
409 } | 410 } |
410 | 411 |
411 return NGX_OK; | 412 return NGX_OK; |
412 } | 413 } |
437 | 438 |
438 addrs6[i].conf.ctx = addr[i].opt.ctx; | 439 addrs6[i].conf.ctx = addr[i].opt.ctx; |
439 #if (NGX_MAIL_SSL) | 440 #if (NGX_MAIL_SSL) |
440 addrs6[i].conf.ssl = addr[i].opt.ssl; | 441 addrs6[i].conf.ssl = addr[i].opt.ssl; |
441 #endif | 442 #endif |
443 addrs6[i].conf.proxy_protocol = addr[i].opt.proxy_protocol; | |
442 addrs6[i].conf.addr_text = addr[i].opt.addr_text; | 444 addrs6[i].conf.addr_text = addr[i].opt.addr_text; |
443 } | 445 } |
444 | 446 |
445 return NGX_OK; | 447 return NGX_OK; |
446 } | 448 } |