From: Olivier Houchard Date: Mon, 20 Apr 2026 09:58:57 +0000 (+0200) Subject: BUG/MEDIUM: checks: Don't forget to set the "alt_proto" field X-Git-Url: http://git.ipfire.org/gitweb/?a=commitdiff_plain;h=78712c389843ffdfb4cb582b1b30803e6fae1c7d;p=thirdparty%2Fhaproxy.git BUG/MEDIUM: checks: Don't forget to set the "alt_proto" field The target address type has been added to checks in commit d759e60a3292f425aee66384e87ae227ce191c08, but as part of that address type is the "alt_proto" field, that was not properly set for dynamic servers, That could lead to checks not working for any protocol that use a non-zero alt_proto, such as QUIC. So set it properly. --- diff --git a/src/check.c b/src/check.c index 481cab22f..077956559 100644 --- a/src/check.c +++ b/src/check.c @@ -1839,8 +1839,11 @@ int init_srv_check(struct server *srv) if (srv->check.port) { srv->check.addr_type.proto_type = PROTO_TYPE_STREAM; srv->check.addr_type.xprt_type = PROTO_TYPE_STREAM; - } else + srv->check.alt_proto = 0; + } else { srv->check.addr_type = srv->addr_type; + srv->check.alt_proto = srv->alt_proto; + } } if (net_addr_type_is_quic(&srv->check.addr_type)) srv->check.xprt = xprt_get(XPRT_QUIC);