Mercurial > hg > nginx
comparison src/core/ngx_proxy_protocol.h @ 7591:89adf49fe76a
Parsing server PROXY protocol address and port (ticket #1206).
New variables $proxy_protocol_server_addr and $proxy_protocol_server_port are
added both to HTTP and Stream.
author | Roman Arutyunyan <arut@nginx.com> |
---|---|
date | Mon, 21 Oct 2019 20:22:30 +0300 |
parents | 06b01840bd42 |
children | cca4c8a715de |
comparison
equal
deleted
inserted
replaced
7590:06b01840bd42 | 7591:89adf49fe76a |
---|---|
16 #define NGX_PROXY_PROTOCOL_MAX_HEADER 107 | 16 #define NGX_PROXY_PROTOCOL_MAX_HEADER 107 |
17 | 17 |
18 | 18 |
19 struct ngx_proxy_protocol_s { | 19 struct ngx_proxy_protocol_s { |
20 ngx_str_t src_addr; | 20 ngx_str_t src_addr; |
21 ngx_str_t dst_addr; | |
21 in_port_t src_port; | 22 in_port_t src_port; |
23 in_port_t dst_port; | |
22 }; | 24 }; |
23 | 25 |
24 | 26 |
25 u_char *ngx_proxy_protocol_read(ngx_connection_t *c, u_char *buf, | 27 u_char *ngx_proxy_protocol_read(ngx_connection_t *c, u_char *buf, |
26 u_char *last); | 28 u_char *last); |