Mercurial > hg > nginx
comparison src/mail/ngx_mail.h @ 7796:4b8f23a36ebf
Mail: sending of the PROXY protocol to backends.
Activated with the "proxy_protocol" directive. Can be combined with
"listen ... proxy_protocol;" and "set_real_ip_from ...;" to pass
client address provided to nginx in the PROXY protocol header.
author | Maxim Dounin <mdounin@mdounin.ru> |
---|---|
date | Fri, 05 Mar 2021 17:16:32 +0300 |
parents | ef4bdbbce57e |
children | 379d461eccf4 |
comparison
equal
deleted
inserted
replaced
7795:ef4bdbbce57e | 7796:4b8f23a36ebf |
---|---|
176 | 176 |
177 | 177 |
178 typedef struct { | 178 typedef struct { |
179 ngx_peer_connection_t upstream; | 179 ngx_peer_connection_t upstream; |
180 ngx_buf_t *buffer; | 180 ngx_buf_t *buffer; |
181 ngx_uint_t proxy_protocol; /* unsigned proxy_protocol:1; */ | |
181 } ngx_mail_proxy_ctx_t; | 182 } ngx_mail_proxy_ctx_t; |
182 | 183 |
183 | 184 |
184 typedef struct { | 185 typedef struct { |
185 uint32_t signature; /* "MAIL" */ | 186 uint32_t signature; /* "MAIL" */ |