From 24ea0e013d3d5d2469a69314c295073176664ea1 Mon Sep 17 00:00:00 2001 From: Willy Tarreau Date: Tue, 2 Jun 2026 18:52:56 +0200 Subject: [PATCH] BUG/MINOR: haterm: also apply the tcp-bind-opts to clear TCP "bind" lines Commit 92581043fb ("MINOR: haterm: add long options for QUIC and TCP "bind" settings") added --tcp-bind-opts. The doc (and commit) says that it applies to TCP bind lines but it only applied to the TCP/SSL ones, not the clear ones. Let's fix it. No backport needed, this is only 3.4. --- src/haterm_init.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/haterm_init.c b/src/haterm_init.c index a78c41a07..623fe36f7 100644 --- a/src/haterm_init.c +++ b/src/haterm_init.c @@ -399,7 +399,9 @@ void haproxy_init_args(int argc, char **argv) } /* clear HTTP */ - hbuf_appendf(&fbuf, "\tbind %s:%s shards by-thread\n", ip, port1); + hbuf_appendf(&fbuf, "\tbind %s:%s shards by-thread%s%s\n", ip, port1, + tcp_bind_opt ? " " : "", + tcp_bind_opt ? tcp_bind_opt : ""); has_bind = 1; if (port2) { has_ssl = 1;