]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
Revert "MINOR: cfgparse-listen: warn when use-server rules is used in wrong mode"
authorAurelien DARRAGON <adarragon@haproxy.com>
Thu, 23 Nov 2023 15:15:10 +0000 (16:15 +0100)
committerChristopher Faulet <cfaulet@haproxy.com>
Fri, 24 Nov 2023 15:27:55 +0000 (16:27 +0100)
This reverts commit 5884e46ec8c8231e73c68e1bdd345c75c9af97a0 since we
cannot perform the test during parsing as the effective proxy mode is
not yet known.

src/cfgparse-listen.c

index 2b5cb4b53c5a54fceb7599735528c3f7e00f1f52..a8379e4efb8458206f7ba61c0cdcbfb5a183bc62 100644 (file)
@@ -1428,11 +1428,6 @@ int cfg_parse_listen(const char *file, int linenum, char **args, int kwm)
                if (warnifnotcap(curproxy, PR_CAP_BE, file, linenum, args[0], NULL))
                        err_code |= ERR_WARN;
 
-               if (curproxy->mode != PR_MODE_TCP && curproxy->mode != PR_MODE_HTTP) {
-                       err_code |= ERR_WARN;
-                       ha_warning("parsing [%s:%d] : '%s' rules will be ignored for %s backend '%s' (unsupported mode).\n", file, linenum, args[0], proxy_mode_str(curproxy->mode), curproxy->id);
-               }
-
                if (*(args[1]) == 0) {
                        ha_alert("parsing [%s:%d] : '%s' expects a server name.\n", file, linenum, args[0]);
                        err_code |= ERR_ALERT | ERR_FATAL;