MINOR: acme: the acme section is experimental

Allow the usage of the acme section only when
expose-experimental-directives is set.
This commit is contained in:
William Lallemand 2025-04-09 16:35:11 +02:00
parent b8209cf697
commit 4780a1f223

View File

@ -116,6 +116,12 @@ static int cfg_parse_acme(const char *file, int linenum, char **args, int kwm)
int err_code = 0;
char *errmsg = NULL;
if (!experimental_directives_allowed) {
ha_alert("parsing [%s:%d]: section '%s' is experimental, must be allowed via a global 'expose-experimental-directives'\n", file, linenum, cursection);
err_code |= ERR_ALERT | ERR_FATAL;
goto out;
}
if (strcmp(args[0], "acme") == 0) {
struct acme_cfg *tmp_acme = acme_cfgs;