BUG/MINOR: checks: Forbid tcp-check lines in default section as documented
This commit is contained in:
parent
738ee76aa7
commit
11ef149e72
@ -3019,6 +3019,13 @@ stats_error_parsing:
|
||||
if (warnifnotcap(curproxy, PR_CAP_BE, file, linenum, args[0], NULL))
|
||||
err_code |= ERR_WARN;
|
||||
|
||||
if (curproxy == &defproxy) {
|
||||
ha_alert("parsing [%s:%d]: '%s' not allowed in 'defaults' section.\n",
|
||||
file, linenum, args[0]);
|
||||
err_code |= ERR_ALERT | ERR_FATAL;
|
||||
goto out;
|
||||
}
|
||||
|
||||
if (strcmp(args[1], "comment") == 0) {
|
||||
int cur_arg;
|
||||
struct tcpcheck_rule *tcpcheck;
|
||||
|
Loading…
x
Reference in New Issue
Block a user