mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2025-08-06 15:17:01 +02:00
MINOR: quic: define proper proto on QUIC servers
Force QUIC as <mux_proto> 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.
This commit is contained in:
parent
855fd63f90
commit
cdcecb9b65
@ -4115,6 +4115,13 @@ int check_config_validity()
|
||||
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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user