]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MINOR: config: Fix setting of alt_proto
authorAperence <anthony.doeraene.dev@gmail.com>
Sat, 31 Jan 2026 22:08:44 +0000 (23:08 +0100)
committerWilly Tarreau <w@1wt.eu>
Wed, 4 Feb 2026 13:54:20 +0000 (14:54 +0100)
commit143f5a5c0d8c6af58d5530ffc11baade28856ed8
tree266047f9a3fef9af4360ce6a66c38a2ffae383a4
parentb6bdb2553bd1031acfeadea3dfee5366dabed462
BUG/MINOR: config: Fix setting of alt_proto

This patch fixes the bug presented in issue #3254
(https://github.com/haproxy/haproxy/issues/3254), which
occured on FreeBSD when using a stream socket for in
nameserver section. This bug occured due to an incorrect
reset of the alt_proto for a stream socket when the default
socket is created as a datagram socket. This patch fixes
this bug by doing a late assignment to alt_proto when
a datagram socket is requested, leaving only the modification
of alt_proto done by mptcp. Additional documentation
for the use of alt_proto has also been added to
clarify the use of the alt_proto variable.
src/tools.c