]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MINOR: http-fetch: recognize IPv6 addresses in square brackets in req.hdr_ip()
authorOto Valek <oto@valek.net>
Fri, 24 Feb 2023 20:39:56 +0000 (21:39 +0100)
committerWilly Tarreau <w@1wt.eu>
Wed, 1 Mar 2023 13:09:46 +0000 (14:09 +0100)
commitd1773e6881caba229575fa7e0525846697dd4e21
treeac71bd049d86f14c7ca08b78db7473f148db8a4d
parentd48bfb6983a3d28183b068a4f8975c1c5cd05978
BUG/MINOR: http-fetch: recognize IPv6 addresses in square brackets in req.hdr_ip()

If an IPv6 address is enclosed in square brackets [], trim them before
calling inet_pton().  This is to comply with RFC7239 6.1 and RFC3986 3.2.2.
src/http_fetch.c