]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
BUG/MINOR: proxy: fix "show backend"
authorAmaury Denoyelle <adenoyelle@haproxy.com>
Tue, 4 Aug 2026 14:17:39 +0000 (16:17 +0200)
committerAmaury Denoyelle <adenoyelle@haproxy.com>
Wed, 5 Aug 2026 09:36:20 +0000 (11:36 +0200)
During the conversion for the main proxies list, "show backend" was
broken as no entry would be displayed. This patch restores the iteration
over the backends list.

The exact patch which introduces the regression is the following one.

  164d05706132107a405d23663dbca29916910f55
  MINOR: proxy: define proxies_list iteration functions

No need to backport unless the above patch is.

src/proxy.c

index 0f9d099d6762ba1a6a60235553c58fb3db85d55d..8ec08a5df778faefd82c90f988408cf448cdeb95 100644 (file)
@@ -4620,7 +4620,7 @@ static int cli_io_handler_show_backend(struct appctx *appctx)
        }
 
        for (; ctx->px; watcher_next(&ctx->px_watch, main_proxies_next(ctx->px))) {
-               curproxy = appctx->svcctx;
+               curproxy = ctx->px;
 
                /* looking for non-internal backends only */
                if ((curproxy->cap & (PR_CAP_BE|PR_CAP_INT)) != PR_CAP_BE)