diff options
author | William Lallemand <wlallemand@haproxy.org> | 2021-08-25 18:15:31 +0200 |
---|---|---|
committer | William Lallemand <wlallemand@haproxy.org> | 2021-08-25 18:15:31 +0200 |
commit | a39e6266d1b6877b2765217d569bc921bb9e7781 (patch) | |
tree | 0d47f87dfb1fe970112d344aba5f396e5d0cb585 | |
parent | 956be9d242a5604482999b588a33e1e925a00372 (diff) | |
download | haproxy-a39e6266d1b6877b2765217d569bc921bb9e7781.tar.gz |
BUG/MINOR: proxy: don't dump servers of internal proxies
Patch 211c967 ("MINOR: httpclient: add the server to the proxy") broke
the reg-tests that do a "show servers state".
Indeed the servers of the proxies flagged with PR_CAP_INT are dumped in
the output of this CLI command.
This patch fixes the issue par ignoring the PR_CA_INT proxies in the
dump.
-rw-r--r-- | src/proxy.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/proxy.c b/src/proxy.c index 3391dc90b..2642b44a8 100644 --- a/src/proxy.c +++ b/src/proxy.c @@ -2577,7 +2577,7 @@ static int cli_io_handler_servers_state(struct appctx *appctx) for (; appctx->ctx.cli.p0 != NULL; appctx->ctx.cli.p0 = curproxy->next) { curproxy = appctx->ctx.cli.p0; /* servers are only in backends */ - if (curproxy->cap & PR_CAP_BE) { + if ((curproxy->cap & PR_CAP_BE) && !(curproxy->cap & PR_CAP_INT)) { if (!dump_servers_state(si)) return 0; } |