]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
BUG/MINOR: mworker/cli: don't display help on master applet
authorWilliam Lallemand <wlallemand@haproxy.org>
Wed, 2 Feb 2022 10:23:58 +0000 (11:23 +0100)
committerWilliam Lallemand <wlallemand@haproxy.org>
Wed, 2 Feb 2022 14:51:24 +0000 (15:51 +0100)
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

index 113ab438c9e9873e1632618f7be09c74a547bbe0..2f5141d5decabdf57ff011e737e92a862d1d9f26 100644 (file)
--- 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 <value>              : change the per-process maxconn setting",                  cli_parse_set_maxconn_global, NULL },
        { { "set", "rate-limit", NULL },         "set rate-limit <setting> <value>        : 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 },