From: William Lallemand Date: Fri, 26 Oct 2018 12:47:42 +0000 (+0200) Subject: MEDIUM: cli: enable "show cli sockets" for the master X-Git-Tag: v1.9-dev5~12 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=35851fbaf437ebcde3a7d033b479c4aeffd8b8c6;p=thirdparty%2Fhaproxy.git MEDIUM: cli: enable "show cli sockets" for the master Enable the keyword on the master CLI. --- diff --git a/src/cli.c b/src/cli.c index cc1f6813cb..f4c516728b 100644 --- a/src/cli.c +++ b/src/cli.c @@ -2327,7 +2327,7 @@ static struct cli_kw_list cli_kws = {{ },{ { { "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 }, { { "set", "timeout", NULL }, "set timeout : change a timeout setting", cli_parse_set_timeout, NULL, NULL }, { { "show", "env", NULL }, "show env [var] : dump environment variables known to the process", cli_parse_show_env, cli_io_handler_show_env, NULL }, - { { "show", "cli", "sockets", NULL }, "show cli sockets : dump list of cli sockets", cli_parse_default, cli_io_handler_show_cli_sock, NULL }, + { { "show", "cli", "sockets", NULL }, "show cli sockets : dump list of cli sockets", cli_parse_default, cli_io_handler_show_cli_sock, NULL, NULL, ACCESS_MASTER }, { { "show", "fd", NULL }, "show fd [num] : dump list of file descriptors in use", cli_parse_show_fd, cli_io_handler_show_fd, NULL }, { { "show", "activity", NULL }, "show activity : show per-thread activity stats (for support/developers)", cli_parse_default, cli_io_handler_show_activity, NULL }, { { "show", "proc", NULL }, "show proc : show processes status", cli_parse_default, cli_io_handler_show_proc, NULL, NULL, ACCESS_MASTER_ONLY},