]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
Revert "MINOR: cfgparse-listen: "http-reuse" requires TCP or HTTP mode"
authorAurelien DARRAGON <adarragon@haproxy.com>
Fri, 17 Nov 2023 17:05:05 +0000 (18:05 +0100)
committerWilly Tarreau <w@1wt.eu>
Sat, 18 Nov 2023 10:16:21 +0000 (11:16 +0100)
This reverts commit 65f1124b5dd4f01142337318f16968a33c2146ed since we
cannot perform the test during parsing as the effective proxy mode is
not yet known.

src/cfgparse-listen.c

index 2dd9d7b12ec6a0f495fe462e034722a9c65296ce..ba265fe7606a0f7689f914b550d3ce2725c35d61 100644 (file)
@@ -2342,12 +2342,6 @@ stats_error_parsing:
                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) {
-                       ha_alert("parsing [%s:%d] : '%s' requires TCP or HTTP mode.\n", file, linenum, args[0]);
-                       err_code |= ERR_ALERT | ERR_FATAL;
-                       goto out;
-               }
-
                if (strcmp(args[1], "never") == 0) {
                        /* enable a graceful server shutdown on an HTTP 404 response */
                        curproxy->options &= ~PR_O_REUSE_MASK;