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>
diff --git a/src/cli.c b/src/cli.c
index 5f0694d..fb36bae 100644
--- a/src/cli.c
+++ b/src/cli.c
@@ -1281,7 +1281,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);