]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
MINOR: haterm: do not emit a warning when not using SSL
authorWilly Tarreau <w@1wt.eu>
Tue, 26 May 2026 11:11:35 +0000 (13:11 +0200)
committerWilly Tarreau <w@1wt.eu>
Tue, 26 May 2026 11:11:35 +0000 (13:11 +0200)
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

index 4b9e0878639b1afc39ffe75bde8488725f66c6a9..f63a9a42bf6b86aadd9fc3e370ba72919f795520 100644 (file)
@@ -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 */