]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
MINOR: server: mark QUIC support as experimental
authorAmaury Denoyelle <adenoyelle@haproxy.com>
Wed, 11 Jun 2025 15:26:44 +0000 (17:26 +0200)
committerAmaury Denoyelle <adenoyelle@haproxy.com>
Wed, 11 Jun 2025 16:37:33 +0000 (18:37 +0200)
Mark QUIC address support for servers as experimental on the backend
side. Previously, it was allowed but wouldn't function as expected. As
QUIC backend support requires several changes, it is better to declare
it as experimental first.

src/server.c

index 1bef0e39f274c35b5075fd552ac6d16fd4069680..4d7d1f0d824637584c6fa591eee24d0677479427 100644 (file)
@@ -3597,10 +3597,14 @@ static int _srv_parse_init(struct server **srv, char **args, int *cur_arg,
                }
 
 #ifdef USE_QUIC
-               if (newsrv->addr_type.proto_type == PROTO_TYPE_DGRAM &&
-                   newsrv->addr_type.xprt_type == PROTO_TYPE_STREAM) {
-                       ha_alert("QUIC protocol is unsupported on the backend side.\n");
-                       goto out;
+               if (srv_is_quic(newsrv)) {
+                       if (!experimental_directives_allowed) {
+                               ha_alert("QUIC is experimental for server '%s',"
+                                        " must be allowed via a global 'expose-experimental-directives'\n",
+                                        newsrv->id);
+                               err_code |= ERR_ALERT | ERR_FATAL;
+                               goto out;
+                       }
                }
 #endif