aboutsummaryrefslogtreecommitdiff
path: root/src/core/ngx_connection.h
diff options
context:
space:
mode:
authorRoman Arutyunyan <arut@nginx.com>2019-10-21 18:06:19 +0300
committerRoman Arutyunyan <arut@nginx.com>2019-10-21 18:06:19 +0300
commitbe932e81a1531a3ba032febad968fc2006c4fa48 (patch)
tree582aff75a1bd2b436983740e6dfc76288047e31e /src/core/ngx_connection.h
parent0098761cb8636a6def144445082a0c90d340321c (diff)
downloadnginx-be932e81a1531a3ba032febad968fc2006c4fa48.tar.gz
nginx-be932e81a1531a3ba032febad968fc2006c4fa48.zip
Core: moved PROXY protocol fields out of ngx_connection_t.
Now a new structure ngx_proxy_protocol_t holds these fields. This allows to add more PROXY protocol fields in the future without modifying the connection structure.
Diffstat (limited to 'src/core/ngx_connection.h')
-rw-r--r--src/core/ngx_connection.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/core/ngx_connection.h b/src/core/ngx_connection.h
index 54059629e..ad6556d0c 100644
--- a/src/core/ngx_connection.h
+++ b/src/core/ngx_connection.h
@@ -147,8 +147,7 @@ struct ngx_connection_s {
socklen_t socklen;
ngx_str_t addr_text;
- ngx_str_t proxy_protocol_addr;
- in_port_t proxy_protocol_port;
+ ngx_proxy_protocol_t *proxy_protocol;
#if (NGX_SSL || NGX_COMPAT)
ngx_ssl_connection_t *ssl;