diff options
author | Maxim Dounin <mdounin@mdounin.ru> | 2021-03-05 17:16:24 +0300 |
---|---|---|
committer | Maxim Dounin <mdounin@mdounin.ru> | 2021-03-05 17:16:24 +0300 |
commit | 1fce224f01b5a9b503315bd24e99421e5ca5bd7c (patch) | |
tree | 60c1787f169da6478225da4666410484b404df85 /src/mail/ngx_mail.h | |
parent | 72dcd5141b32fccdcd241cc031972f51874ceb41 (diff) | |
download | nginx-1fce224f01b5a9b503315bd24e99421e5ca5bd7c.tar.gz nginx-1fce224f01b5a9b503315bd24e99421e5ca5bd7c.zip |
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.
Diffstat (limited to 'src/mail/ngx_mail.h')
-rw-r--r-- | src/mail/ngx_mail.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/mail/ngx_mail.h b/src/mail/ngx_mail.h index e5ecf3914..a46522068 100644 --- a/src/mail/ngx_mail.h +++ b/src/mail/ngx_mail.h @@ -41,6 +41,7 @@ typedef struct { unsigned ipv6only:1; #endif unsigned so_keepalive:2; + unsigned proxy_protocol:1; #if (NGX_HAVE_KEEPALIVE_TUNABLE) int tcp_keepidle; int tcp_keepintvl; @@ -55,7 +56,8 @@ typedef struct { typedef struct { ngx_mail_conf_ctx_t *ctx; ngx_str_t addr_text; - ngx_uint_t ssl; /* unsigned ssl:1; */ + unsigned ssl:1; + unsigned proxy_protocol:1; } ngx_mail_addr_conf_t; typedef struct { |