]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
MINOR: config: remove deprecated option "http-tunnel"
authorWilly Tarreau <w@1wt.eu>
Fri, 11 Jun 2021 14:06:29 +0000 (16:06 +0200)
committerWilly Tarreau <w@1wt.eu>
Fri, 11 Jun 2021 14:57:34 +0000 (16:57 +0200)
It was marked as deprecated in 2.1-dev2 and for removal in 2.2, but it
was missed. A warning was already emitted and the doc didn't refer to
it any more, let's now get rid of it.

src/cfgparse-listen.c

index d014b8ce0257a48892921b1f04c4563d4f5e0828..29778a18c1e6d0162a5241c9af34a537aa826349 100644 (file)
@@ -57,7 +57,7 @@ static const char *common_kw_list[] = {
 
 static const char *common_options[] = {
        "httpclose", "http-server-close", "http-keep-alive",
-       "http-tunnel", "redispatch", "httplog", "tcplog", "tcpka", "httpchk",
+       "redispatch", "httplog", "tcplog", "tcpka", "httpchk",
        "ssl-hello-chk", "smtpchk", "pgsql-check", "redis-check",
        "mysql-check", "ldap-check", "spop-check", "tcp-check",
        "external-check", "forwardfor", "original-to",
@@ -1986,9 +1986,9 @@ stats_error_parsing:
                        }
                }
                else if (strcmp(args[1], "http-tunnel") == 0) {
-                       ha_warning("parsing [%s:%d]: the option '%s' is deprecated and will be removed in next version.\n",
+                       ha_alert("parsing [%s:%d]: option '%s' is not supported any more since HAProxy 2.1, please just remove it, it shouldn't be needed.\n",
                                 file, linenum, args[1]);
-                       err_code |= ERR_WARN;
+                       err_code |= ERR_ALERT | ERR_FATAL;
                        goto out;
                }