BUG/MINOR: cli: fix server name output in "show fd"
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.
(cherry picked from commit dfb34a8f87cacc1ced48f555ab74b6630ce4bb08)
Signed-off-by: Christopher Faulet <cfaulet@haproxy.com>
(cherry picked from commit ab40792af6b81e45e632b5c14d396aba4efb4cde)
Signed-off-by: Willy Tarreau <w@1wt.eu>
diff --git a/src/cli.c b/src/cli.c
index 014a166..800c369 100644
--- a/src/cli.c
+++ b/src/cli.c
@@ -1132,7 +1132,7 @@
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);