aboutsummaryrefslogtreecommitdiff
path: root/src/core/ngx_proxy_protocol.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/ngx_proxy_protocol.h')
-rw-r--r--src/core/ngx_proxy_protocol.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/core/ngx_proxy_protocol.h b/src/core/ngx_proxy_protocol.h
index fb848f683..713f5c799 100644
--- a/src/core/ngx_proxy_protocol.h
+++ b/src/core/ngx_proxy_protocol.h
@@ -16,6 +16,12 @@
#define NGX_PROXY_PROTOCOL_MAX_HEADER 107
+struct ngx_proxy_protocol_s {
+ ngx_str_t src_addr;
+ in_port_t src_port;
+};
+
+
u_char *ngx_proxy_protocol_read(ngx_connection_t *c, u_char *buf,
u_char *last);
u_char *ngx_proxy_protocol_write(ngx_connection_t *c, u_char *buf,