]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
BUG/MINOR: haterm: also apply the tcp-bind-opts to clear TCP "bind" lines
authorWilly Tarreau <w@1wt.eu>
Tue, 2 Jun 2026 16:52:56 +0000 (18:52 +0200)
committerWilly Tarreau <w@1wt.eu>
Tue, 2 Jun 2026 16:52:56 +0000 (18:52 +0200)
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

index a78c41a073bf161768f7f9796dec2f40f8b0ecc7..623fe36f778f4d03b6499830dc075270f0afb64e 100644 (file)
@@ -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;