comparison src/core/ngx_connection.h @ 7590:06b01840bd42

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.
author Roman Arutyunyan <arut@nginx.com>
date Mon, 21 Oct 2019 18:06:19 +0300
parents e7b2b907c0f8
children 4e141d0816d4 5d91389e0fd3
comparison
equal deleted inserted replaced
7589:486d2e0b1b6f 7590:06b01840bd42
145 145
146 struct sockaddr *sockaddr; 146 struct sockaddr *sockaddr;
147 socklen_t socklen; 147 socklen_t socklen;
148 ngx_str_t addr_text; 148 ngx_str_t addr_text;
149 149
150 ngx_str_t proxy_protocol_addr; 150 ngx_proxy_protocol_t *proxy_protocol;
151 in_port_t proxy_protocol_port;
152 151
153 #if (NGX_SSL || NGX_COMPAT) 152 #if (NGX_SSL || NGX_COMPAT)
154 ngx_ssl_connection_t *ssl; 153 ngx_ssl_connection_t *ssl;
155 #endif 154 #endif
156 155