diff --git a/src/cfgparse.c b/src/cfgparse.c index b2426639d..40c5a16e1 100644 --- a/src/cfgparse.c +++ b/src/cfgparse.c @@ -3753,6 +3753,15 @@ int check_config_validity() int mode = (1 << (curproxy->mode == PR_MODE_HTTP)); const struct mux_proto_list *mux_ent; + if (!bind_conf->mux_proto) { + /* No protocol was specified. If we're using QUIC at the transport + * layer, we'll instantiate it as a mux as well. If QUIC is not + * compiled in, this wil remain NULL. + */ + if (bind_conf->xprt && bind_conf->xprt == xprt_get(XPRT_QUIC)) + bind_conf->mux_proto = get_mux_proto(ist("quic")); + } + if (!bind_conf->mux_proto) continue;