]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
MINOR: mux-quic-be: allow QUIC proto on backend side
authorAmaury Denoyelle <adenoyelle@haproxy.com>
Wed, 11 Jun 2025 15:38:21 +0000 (17:38 +0200)
committerAmaury Denoyelle <adenoyelle@haproxy.com>
Wed, 11 Jun 2025 16:37:34 +0000 (18:37 +0200)
Activate QUIC protocol support for MUX-QUIC on the backend side,
additionally to current frontend support. This change is mandatory to be
able to implement QUIC on the backend side.

Without this modification, it is impossible to activate explicitely QUIC
protocol on a server line, hence an error is reported :
  config : proxy 'xxxx' : MUX protocol 'quic' is not usable for server 'yyyy'

src/mux_quic.c

index 0473cb50fb6e27df2a515cfe37d9b991e0e1ff97..9343f8d10e087acf2c686bd48460739c87d92c07 100644 (file)
@@ -4149,6 +4149,6 @@ void qcc_show_quic(struct qcc *qcc)
 }
 
 static struct mux_proto_list mux_proto_quic =
-  { .token = IST("quic"), .mode = PROTO_MODE_HTTP, .side = PROTO_SIDE_FE, .mux = &qmux_ops };
+  { .token = IST("quic"), .mode = PROTO_MODE_HTTP, .side = PROTO_SIDE_BOTH, .mux = &qmux_ops };
 
 INITCALL1(STG_REGISTER, register_mux_proto, &mux_proto_quic);