[config] setup only allowed in master config context

personal/stbuehler/wip
Stefan Bühler 9 years ago
parent 5222d524ad
commit 56e606bbd7
  1. 3
      src/main/config_parser.rl

@ -1141,6 +1141,9 @@ static gboolean p_actions(gboolean block, liAction *list, liConfigTokenizerConte
NEXT(token);
switch (token) {
case TK_SETUP:
if (!ctx->master_config) {
return parse_error(ctx, error, "setup not allowed in this context");
}
NEXT(token);
switch (token) {
case TK_CURLY_OPEN:

Loading…
Cancel
Save