aboutsummaryrefslogtreecommitdiff
path: root/src/core/ngx_proxy_protocol.c
Commit message (Collapse)AuthorAge
* Fixed PROXY protocol to use ngx_memcpy()/ngx_memcmp().Maxim Dounin2022-11-08
|
* Added logging to PROXY protocol write buffer check.Maxim Dounin2022-11-08
| | | | | | The check is not expected to fail unless there is a bug in the calling code. But given the check is here, it should log an alert if it fails instead of silently closing the connection.
* Increased maximum read PROXY protocol header size.Roman Arutyunyan2022-11-02
| | | | | | | | Maximum size for reading the PROXY protocol header is increased to 4096 to accommodate a bigger number of TLVs, which are supported since cca4c8a715de. Maximum size for writing the PROXY protocol header is not changed since only version 1 is currently supported.
* Added type cast to ngx_proxy_protocol_parse_uint16().Roman Arutyunyan2022-09-27
| | | | | The cast is added to make ngx_proxy_protocol_parse_uint16() similar to ngx_proxy_protocol_parse_uint32().
* PROXY protocol v2 TLV variables.Roman Arutyunyan2022-10-12
| | | | | 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.
* Log only the first line of user input on PROXY protocol v1 error.Roman Arutyunyan2022-10-10
| | | | | | | | Previously, all received user input was logged. If a multi-line text was received from client and logged, it could reduce log readability and also make it harder to parse nginx log by scripts. The change brings to PROXY protocol the same behavior that exists for HTTP request line in ngx_http_log_error_handler().
* Parsing server PROXY protocol address and port (ticket #1206).Roman Arutyunyan2019-10-21
| | | | | New variables $proxy_protocol_server_addr and $proxy_protocol_server_port are added both to HTTP and Stream.
* Core: moved PROXY protocol fields out of ngx_connection_t.Roman Arutyunyan2019-10-21
| | | | | | 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.
* Core: fixed build, broken by 63e91f263a49.Vladimir Homutov2018-04-02
| | | | Both Solaris and Windows define "s_addr" as a macro.
* Core: revised the PROXY protocol v2 code.Ruslan Ermilov2018-04-02
| | | | | | | | - use normal prefixes for types and macros - removed some macros and types - revised debug messages - removed useless check of ngx_sock_ntop() returning 0 - removed special processing of AF_UNSPEC
* Core: style.Vladimir Homutov2018-03-27
|
* Core: added processing of version 2 of the PROXY protocol.Vladimir Homutov2018-03-22
| | | | | | | | The protocol used on inbound connection is auto-detected and corresponding parser is used to extract passed addresses. TLV parameters are ignored. The maximum supported size of PROXY protocol header is 107 bytes (similar to version 1).
* Introduced ngx_inet_get_port() and ngx_inet_set_port() functions.Roman Arutyunyan2016-06-20
|
* Added the $proxy_protocol_port variable.Dmitry Volyntsev2016-05-23
|
* Core: renamed ngx_proxy_protocol_parse to ngx_proxy_protocol_read.Roman Arutyunyan2015-06-16
| | | | The new name is consistent with the ngx_proxy_protocol_write function.
* Stream: client-side PROXY protocol.Roman Arutyunyan2015-06-16
| | | | | The new directive "proxy_protocol" toggles sending out PROXY protocol header to upstream once connection is established.
* Added server-side support for PROXY protocol v1 (ticket #355).Roman Arutyunyan2014-03-17
Client address specified in the PROXY protocol header is now saved in the $proxy_protocol_addr variable and can be used in the realip module. This is currently not implemented for mail.