MINOR: httpclient/cli: access should be only done from expert mode

Only enable the usage of the CLI HTTP client in expert mode.
This commit is contained in:
William Lallemand 2021-10-19 10:58:30 +02:00
parent 813f913444
commit 34b3a93655
1 changed files with 1 additions and 1 deletions

View File

@ -236,7 +236,7 @@ static void hc_cli_release(struct appctx *appctx)
/* register cli keywords */
static struct cli_kw_list cli_kws = {{ },{
{ { "httpclient", NULL }, "httpclient <method> <URI> : launch an HTTP request", hc_cli_parse, hc_cli_io_handler, hc_cli_release},
{ { "httpclient", NULL }, "httpclient <method> <URI> : launch an HTTP request", hc_cli_parse, hc_cli_io_handler, hc_cli_release, NULL, ACCESS_EXPERT},
{ { NULL }, NULL, NULL, NULL }
}};