]> git.kaiwu.me - haproxy.git/commit
BUG/MINOR: server: fix QUIC on server-template
authorAmaury Denoyelle <adenoyelle@haproxy.com>
Tue, 28 Jul 2026 16:52:26 +0000 (18:52 +0200)
committerAmaury Denoyelle <adenoyelle@haproxy.com>
Wed, 29 Jul 2026 13:21:35 +0000 (15:21 +0200)
commit6b96eb7b023d0c31d073402d5e3fb23e4238db97
tree0646604a61e0c0464e7aead7044d5e59322bb137
parent94024a60dc197b26a13751a6a0eaa3071f023cfa
BUG/MINOR: server: fix QUIC on server-template

For QUIC backend side support, server xprt has to be set to XPRT_QUIC
when a quic4/6 address is parsed.

Prior to this patch, this was performed in _srv_parse_init(). However
this is not functional with server-template as this function is not
called for the duplicated entries. Xprt field was not updated, which
prevented any communication on these servers.

To properly initialize a QUIC server, uses the same method as SSL.
Server xprt is now set later during ssl_sock_prepare_srv_ctx(). This
callback is invoked through XPRT prepare_srv during proxy_finalize(),
called for any servers with SSL or QUIC settings.

This must be backported up to 3.3.
src/server.c
src/ssl_sock.c