MINOR: mworker: the mworker CLI proxy is internal
authorWilliam Lallemand <wlallemand@haproxy.org>
Wed, 28 Jul 2021 15:40:56 +0000 (17:40 +0200)
committerWilliam Lallemand <wlallemand@haproxy.org>
Wed, 28 Jul 2021 15:40:56 +0000 (17:40 +0200)
Sets the mworker CLI proxy as a internal one (PR_CAP_INT) so we could
exlude it from stats and other tests.

src/cli.c

index b313219..2344eb3 100644 (file)
--- a/src/cli.c
+++ b/src/cli.c
@@ -2685,7 +2685,7 @@ int mworker_cli_proxy_create()
        mworker_proxy->id = strdup("MASTER");
        mworker_proxy->mode = PR_MODE_CLI;
        mworker_proxy->last_change = now.tv_sec;
-       mworker_proxy->cap = PR_CAP_LISTEN; /* this is a listen section */
+       mworker_proxy->cap = PR_CAP_LISTEN | PR_CAP_INT; /* this is a listen section */
        mworker_proxy->maxconn = 10;                 /* default to 10 concurrent connections */
        mworker_proxy->timeout.client = 0; /* no timeout */
        mworker_proxy->conf.file = strdup("MASTER");