MINOR: quic: Add "limited-quic" new tuning setting
This setting which may be used into a "global" section, enables the QUIC listener
bindings when haproxy is compiled with the OpenSSL wrapper. It has no effect
when haproxy is compiled against a TLS stack with QUIC support, typically quictls.
(cherry picked from commit f32201abb03863cd3f03a48b180e61202a6964f4)
Signed-off-by: William Lallemand <wlallemand@haproxy.org>
diff --git a/src/cfgparse-global.c b/src/cfgparse-global.c
index c6eb863..dce56e6 100644
--- a/src/cfgparse-global.c
+++ b/src/cfgparse-global.c
@@ -51,7 +51,7 @@
"log-tag", "spread-checks", "max-spread-checks", "cpu-map", "setenv",
"presetenv", "unsetenv", "resetenv", "strict-limits", "localpeer",
"numa-cpu-mapping", "defaults", "listen", "frontend", "backend",
- "peers", "resolvers", "cluster-secret", "no-quic",
+ "peers", "resolvers", "cluster-secret", "no-quic", "limited-quic",
NULL /* must be last */
};
@@ -117,6 +117,12 @@
goto out;
global.tune.options &= ~GTUNE_USE_POLL;
}
+ else if (strcmp(args[0], "limited-quic") == 0) {
+ if (alertif_too_many_args(0, file, linenum, args, &err_code))
+ goto out;
+
+ global.tune.options |= GTUNE_LIMITED_QUIC;
+ }
else if (strcmp(args[0], "no-quic") == 0) {
if (alertif_too_many_args(0, file, linenum, args, &err_code))
goto out;