From 6538d93067c07d446826f3d9b9cb9a3a01df0d0b Mon Sep 17 00:00:00 2001 From: Maxim Dounin Date: Fri, 5 Mar 2021 17:16:32 +0300 Subject: 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. --- src/mail/ngx_mail.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src/mail/ngx_mail.h') 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; -- cgit