]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
BUG/MINOR: servers: Don't make "server" in a frontend fatal.
authorOlivier Houchard <ohouchard@haproxy.com>
Tue, 24 Jul 2018 14:48:59 +0000 (16:48 +0200)
committerWilly Tarreau <w@1wt.eu>
Tue, 24 Jul 2018 15:13:54 +0000 (17:13 +0200)
When parsing the configuration, if "server", "default-server" or
"server-template" are found in a frontend, we first warn that it will be
ignored, only to be considered a fatal error later. Be true to our word, and
just ignore it.

This should be backported to 1.8 and 1.7.

src/server.c

index d96edc77a6995580f4d8f8719c0ae4eb7d8dde78..4498fd878793253fa218a32276ba24979a3ec146 100644 (file)
@@ -1937,7 +1937,7 @@ int parse_server(const char *file, int linenum, char **args, struct proxy *curpr
                        goto out;
                }
                else if (warnifnotcap(curproxy, PR_CAP_BE, file, linenum, args[0], NULL))
-                       err_code |= ERR_ALERT | ERR_FATAL;
+                       err_code |= ERR_WARN;
 
                /* There is no mandatory first arguments for default server. */
                if (srv) {