diff options
author | Roman Arutyunyan <arut@nginx.com> | 2022-10-12 16:58:16 +0400 |
---|---|---|
committer | Roman Arutyunyan <arut@nginx.com> | 2022-10-12 16:58:16 +0400 |
commit | 50e3ff8a006100feaa0666cf5e4f9fd5fdcfb721 (patch) | |
tree | 1a45894c4d4e9f43968a57d99deb275033524c59 /src/core/ngx_proxy_protocol.h | |
parent | 68119b43620c4da4ce0269a2f860a3df7c4dc0b5 (diff) | |
download | nginx-50e3ff8a006100feaa0666cf5e4f9fd5fdcfb721.tar.gz nginx-50e3ff8a006100feaa0666cf5e4f9fd5fdcfb721.zip |
PROXY protocol v2 TLV variables.
The variables have prefix $proxy_protocol_tlv_ and are accessible by name
and by type. Examples are: $proxy_protocol_tlv_0x01, $proxy_protocol_tlv_alpn.
Diffstat (limited to 'src/core/ngx_proxy_protocol.h')
-rw-r--r-- | src/core/ngx_proxy_protocol.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/core/ngx_proxy_protocol.h b/src/core/ngx_proxy_protocol.h index b71622094..7d9d3eb70 100644 --- a/src/core/ngx_proxy_protocol.h +++ b/src/core/ngx_proxy_protocol.h @@ -21,6 +21,7 @@ struct ngx_proxy_protocol_s { ngx_str_t dst_addr; in_port_t src_port; in_port_t dst_port; + ngx_str_t tlvs; }; @@ -28,6 +29,8 @@ 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, u_char *last); +ngx_int_t ngx_proxy_protocol_get_tlv(ngx_connection_t *c, ngx_str_t *name, + ngx_str_t *value); #endif /* _NGX_PROXY_PROTOCOL_H_INCLUDED_ */ |