]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: quic: reject conf with QUIC servers if not compiled
authorAmaury Denoyelle <adenoyelle@haproxy.com>
Fri, 31 Oct 2025 08:57:54 +0000 (09:57 +0100)
committerAmaury Denoyelle <adenoyelle@haproxy.com>
Fri, 31 Oct 2025 10:32:20 +0000 (11:32 +0100)
commit14a6468df576bf1b5cc345976ab1f4cc0683e008
treecbc71150de895dafd68f54a33e0ce6c0957319bc
parent1af3caae7d9c0639fbcc5829bd5664bc3259c5df
MINOR: quic: reject conf with QUIC servers if not compiled

Ensure that QUIC support is compiled into haproxy when a QUIC server is
configured. This check is performed during _srv_parse_finalize() so that
it is detected both on configuration parsing and when adding a dynamic
server via the CLI.

Note that this changes the behavior of srv_is_quic() utility function.
Previously, it always returned false when QUIC support wasn't compiled.
With this new check introduced, it is now guaranteed that a QUIC server
won't exist if compilation support is not active. Hence srv_is_quic()
does not rely anymore on USE_QUIC define.
include/haproxy/server.h
src/server.c