]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
BUG/MINOR: cli: fix server name output in "show fd"
authorWilly Tarreau <w@1wt.eu>
Tue, 6 Jul 2021 09:41:10 +0000 (11:41 +0200)
committerWilly Tarreau <w@1wt.eu>
Tue, 6 Jul 2021 09:41:10 +0000 (11:41 +0200)
A server name was displayed as <srv>/<proxy> instead of the reverse.
It only confuses diagnostics. This was introduced by commit 7a4a0ac71
("MINOR: cli: add a new "show fd" command") so this fix can be backport
down to 1.8.

src/cli.c

index bc561cf2c65ad17dd5e598675ffcc8ec43845cf4..b3132191dcc0dbf7d5408e5bc49ebe7730e9f301 100644 (file)
--- a/src/cli.c
+++ b/src/cli.c
@@ -1280,7 +1280,7 @@ static int cli_io_handler_show_fd(struct appctx *appctx)
                        if (px)
                                chunk_appendf(&trash, " px=%s", px->id);
                        else if (sv)
-                               chunk_appendf(&trash, " sv=%s/%s", sv->id, sv->proxy->id);
+                               chunk_appendf(&trash, " sv=%s/%s", sv->proxy->id, sv->id);
                        else if (li)
                                chunk_appendf(&trash, " fe=%s", li->bind_conf->frontend->id);