mirror of
http://git.haproxy.org/git/haproxy.git/
synced 2025-03-25 04:17:42 +00:00
MINOR: spoe: Add support of negation for options in SPOE configuration file
For now, no options support negation (using "no" keyword). So it always returns an error.
This commit is contained in:
parent
f032c3ec09
commit
6a2940c5f5
@ -3117,6 +3117,15 @@ cfg_parse_spoe_agent(const char *file, int linenum, char **args, int kwm)
|
||||
err_code |= ERR_ALERT | ERR_FATAL;
|
||||
goto out;
|
||||
}
|
||||
|
||||
/* Following options does not support negation */
|
||||
if (kwm == 1) {
|
||||
Alert("parsing [%s:%d]: negation is not supported for option '%s'.\n",
|
||||
file, linenum, args[1]);
|
||||
err_code |= ERR_ALERT | ERR_FATAL;
|
||||
goto out;
|
||||
}
|
||||
|
||||
if (!strcmp(args[1], "var-prefix")) {
|
||||
char *tmp;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user