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.
Showing
- src/core/ngx_connection.h 1 addition, 2 deletionssrc/core/ngx_connection.h
- src/core/ngx_core.h 1 addition, 0 deletionssrc/core/ngx_core.h
- src/core/ngx_proxy_protocol.c 34 additions, 19 deletionssrc/core/ngx_proxy_protocol.c
- src/core/ngx_proxy_protocol.h 6 additions, 0 deletionssrc/core/ngx_proxy_protocol.h
- src/http/modules/ngx_http_realip_module.c 3 additions, 4 deletionssrc/http/modules/ngx_http_realip_module.c
- src/http/ngx_http_variables.c 19 additions, 4 deletionssrc/http/ngx_http_variables.c
- src/stream/ngx_stream_realip_module.c 4 additions, 4 deletionssrc/stream/ngx_stream_realip_module.c
- src/stream/ngx_stream_variables.c 19 additions, 4 deletionssrc/stream/ngx_stream_variables.c
Please register or sign in to comment