mirror of
https://github.com/haproxy/haproxy.git
synced 2026-05-28 04:12:17 -04:00
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:
parent
b8209cf697
commit
4780a1f223
1 changed files with 6 additions and 0 deletions
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue