From d9c28070c16f7f5e287133e67590f6bd4e5a1598 Mon Sep 17 00:00:00 2001 From: William Lallemand Date: Wed, 2 Feb 2022 11:23:58 +0100 Subject: [PATCH] BUG/MINOR: mworker/cli: don't display help on master applet When in expert or experimental mode on the master CLI, and issuing a command for the master process, all commands are prefixed by "mode-experimental -" or/and "mode-expert on -", however these commands were not available in the master applet, so the help was issued for each one. --- src/cli.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/cli.c b/src/cli.c index 113ab438c..2f5141d5d 100644 --- a/src/cli.c +++ b/src/cli.c @@ -3047,8 +3047,8 @@ static struct cli_kw_list cli_kws = {{ },{ { { "prompt", NULL }, NULL, cli_parse_simple, NULL, NULL, NULL, ACCESS_MASTER }, { { "quit", NULL }, NULL, cli_parse_simple, NULL, NULL, NULL, ACCESS_MASTER }, { { "_getsocks", NULL }, NULL, _getsocks, NULL }, - { { "expert-mode", NULL }, NULL, cli_parse_expert_experimental_mode, NULL }, // not listed - { { "experimental-mode", NULL }, NULL, cli_parse_expert_experimental_mode, NULL }, // not listed + { { "expert-mode", NULL }, NULL, cli_parse_expert_experimental_mode, NULL, NULL, NULL, ACCESS_MASTER }, // not listed + { { "experimental-mode", NULL }, NULL, cli_parse_expert_experimental_mode, NULL, NULL, NULL, ACCESS_MASTER }, // not listed { { "set", "maxconn", "global", NULL }, "set maxconn global : change the per-process maxconn setting", cli_parse_set_maxconn_global, NULL }, { { "set", "rate-limit", NULL }, "set rate-limit : change a rate limiting value", cli_parse_set_ratelimit, NULL }, { { "set", "severity-output", NULL }, "set severity-output [none|number|string]: set presence of severity level in feedback information", cli_parse_set_severity_output, NULL, NULL },