mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2025-08-10 00:57:02 +02:00
MINOR: server: irrelevant error message with 'default-server' config file keyword.
There is no reason to emit such an error message: "'default-server' expects <name> and <addr>[:<port>] as arguments." if less than two arguments are provided on 'default-server' lines. This is a 'server' specific error message.
This commit is contained in:
parent
2efc649447
commit
8065b6d4f2
@ -1020,7 +1020,7 @@ int parse_server(const char *file, int linenum, char **args, struct proxy *curpr
|
||||
else if (warnifnotcap(curproxy, PR_CAP_BE, file, linenum, args[0], NULL))
|
||||
err_code |= ERR_ALERT | ERR_FATAL;
|
||||
|
||||
if (!*args[2]) {
|
||||
if (!defsrv && !*args[2]) {
|
||||
Alert("parsing [%s:%d] : '%s' expects <name> and <addr>[:<port>] as arguments.\n",
|
||||
file, linenum, args[0]);
|
||||
err_code |= ERR_ALERT | ERR_FATAL;
|
||||
|
Loading…
Reference in New Issue
Block a user