]> git.feebdaed.xyz Git - 0xmirror/nginx.git/commit
Realip: allowed square brackets with portless IPv6 address.
authorRoman Arutyunyan <arut@nginx.com>
Mon, 11 Nov 2024 18:28:30 +0000 (22:28 +0400)
committerRoman Arutyunyan <arutyunyan.roman@gmail.com>
Tue, 26 Nov 2024 14:27:07 +0000 (18:27 +0400)
commitb2a67d261496555a46b8931935bf822ce9938294
treedeb9ed98e31018186a9e1ba3c6641a33758a6e2c
parent3f755b5a9e7145d5ce6b897d2298d5f6c544acf7
Realip: allowed square brackets with portless IPv6 address.

When client address is received, IPv6 address could be specified without
square brackets and without port, as well as both with the brackets and
port.  The change allows IPv6 in square brackets and no port, which was
previously considered an error.  This format conforms to RFC 3986.

The change also affects proxy_bind and friends.
src/core/ngx_inet.c