From: Amaury Denoyelle Date: Thu, 5 Jun 2025 13:18:44 +0000 (+0200) Subject: MINOR: quic: define proper proto on QUIC servers X-Git-Tag: v3.3-dev2~80 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=cdcecb9b6537106039f04107525d9e08dab003db;p=thirdparty%2Fhaproxy.git MINOR: quic: define proper proto on QUIC servers Force QUIC as for server if a QUIC address is used. This is similarly to what is already done for bind instances on the frontend side. This step ensures that conn_create_mux() will select the proper protocol. --- diff --git a/src/cfgparse.c b/src/cfgparse.c index 7660a6fb9..3b8eedcfb 100644 --- a/src/cfgparse.c +++ b/src/cfgparse.c @@ -4115,6 +4115,13 @@ out_uri_auth_compat: int mode = conn_pr_mode_to_proto_mode(curproxy->mode); const struct mux_proto_list *mux_ent; + if (srv_is_quic(newsrv)) { + if (!newsrv->mux_proto) { + /* Force QUIC as mux-proto on server with quic addresses, similarly to bind on FE side. */ + newsrv->mux_proto = get_mux_proto(ist("quic")); + } + } + if (!newsrv->mux_proto) continue;