summaryrefslogtreecommitdiffhomepage
path: root/src/mail/ngx_mail.h
diff options
context:
space:
mode:
authorMaxim Dounin <mdounin@mdounin.ru>2021-03-05 17:16:32 +0300
committerMaxim Dounin <mdounin@mdounin.ru>2021-03-05 17:16:32 +0300
commit6538d93067c07d446826f3d9b9cb9a3a01df0d0b (patch)
tree8602f9c9ab1906c11b9adae97c65e1484b2ec503 /src/mail/ngx_mail.h
parentc2e22bcf325ee0031d1c86fbdfb79a2f8e1b4a7b (diff)
downloadnginx-6538d93067c07d446826f3d9b9cb9a3a01df0d0b.tar.gz
nginx-6538d93067c07d446826f3d9b9cb9a3a01df0d0b.tar.bz2
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.
Diffstat (limited to 'src/mail/ngx_mail.h')
-rw-r--r--src/mail/ngx_mail.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/mail/ngx_mail.h b/src/mail/ngx_mail.h
index 030e128c9..b865a3b9e 100644
--- a/src/mail/ngx_mail.h
+++ b/src/mail/ngx_mail.h
@@ -178,6 +178,7 @@ typedef enum {
typedef struct {
ngx_peer_connection_t upstream;
ngx_buf_t *buffer;
+ ngx_uint_t proxy_protocol; /* unsigned proxy_protocol:1; */
} ngx_mail_proxy_ctx_t;