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

src/cfgparse-listen.c

index 8508851a84f62730d66f4e292a6b6406a612cb49..2dd9d7b12ec6a0f495fe462e034722a9c65296ce 100644 (file)
@@ -676,13 +676,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) {
-                       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 (*(args[1]) == 0) {
                        ha_alert("parsing [%s:%d] : '%s' expects <secret_key> as argument.\n",
                                 file, linenum, args[0]);