From: William Lallemand Date: Tue, 19 Oct 2021 08:58:30 +0000 (+0200) Subject: MINOR: httpclient/cli: access should be only done from expert mode X-Git-Tag: v2.5-dev11~37 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=34b3a936555d66e970476ad6f37ed247b54a101a;p=thirdparty%2Fhaproxy.git MINOR: httpclient/cli: access should be only done from expert mode Only enable the usage of the CLI HTTP client in expert mode. --- diff --git a/src/http_client.c b/src/http_client.c index cfbff1913a..f298fe1132 100644 --- a/src/http_client.c +++ b/src/http_client.c @@ -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 : launch an HTTP request", hc_cli_parse, hc_cli_io_handler, hc_cli_release}, + { { "httpclient", NULL }, "httpclient : launch an HTTP request", hc_cli_parse, hc_cli_io_handler, hc_cli_release, NULL, ACCESS_EXPERT}, { { NULL }, NULL, NULL, NULL } }};