From cdcecb9b6537106039f04107525d9e08dab003db Mon Sep 17 00:00:00 2001 From: Amaury Denoyelle Date: Thu, 5 Jun 2025 15:18:44 +0200 Subject: [PATCH] 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. --- src/cfgparse.c | 7 +++++++ 1 file changed, 7 insertions(+) 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; -- 2.47.3