From 635652c5aa537a5d219019b328959f77fec31233 Mon Sep 17 00:00:00 2001 From: Willy Tarreau Date: Tue, 26 May 2026 13:11:35 +0200 Subject: [PATCH] MINOR: haterm: do not emit a warning when not using SSL Latest commit 04811943b5 ("MINOR: haterm: enable h3 for TCP bindings") produces a warning when SSL is not enabled due to the addition of expose-experimental-directives. Let's condition it to the use of SSL. --- src/haterm_init.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/haterm_init.c b/src/haterm_init.c index 4b9e08786..f63a9a42b 100644 --- a/src/haterm_init.c +++ b/src/haterm_init.c @@ -438,7 +438,8 @@ void haproxy_init_args(int argc, char **argv) } hbuf_appendf(&gbuf, "global\n"); hbuf_appendf(&gbuf, "\ttune.memory.hot-size 3145728\n"); - hbuf_appendf(&gbuf, "\texpose-experimental-directives\n"); + if (has_ssl) + hbuf_appendf(&gbuf, "\texpose-experimental-directives\n"); } /* "global" section */