Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nginx/nginx.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoman Arutyunyan <arut@nginx.com>2019-10-21 20:22:30 +0300
committerRoman Arutyunyan <arut@nginx.com>2019-10-21 20:22:30 +0300
commit203898505ca4fde338d718960e485891ecd891f6 (patch)
treebc1f73c9a4b2fb7af0d66ca6935a87488a452c88 /src/core/ngx_proxy_protocol.h
parentbe932e81a1531a3ba032febad968fc2006c4fa48 (diff)
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.
Diffstat (limited to 'src/core/ngx_proxy_protocol.h')
-rw-r--r--src/core/ngx_proxy_protocol.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/core/ngx_proxy_protocol.h b/src/core/ngx_proxy_protocol.h
index 713f5c799..b71622094 100644
--- a/src/core/ngx_proxy_protocol.h
+++ b/src/core/ngx_proxy_protocol.h
@@ -18,7 +18,9 @@
struct ngx_proxy_protocol_s {
ngx_str_t src_addr;
+ ngx_str_t dst_addr;
in_port_t src_port;
+ in_port_t dst_port;
};