]> git.kaiwu.me - haproxy.git/commitdiff
CLEANUP: proxy: adapt the error message for removed "option transparent"
authorWilly Tarreau <w@1wt.eu>
Fri, 9 Oct 2026 07:26:46 +0000 (09:26 +0200)
committerWilly Tarreau <w@1wt.eu>
Fri, 9 Oct 2026 07:30:24 +0000 (09:30 +0200)
The keyword was removed by commit be8159248f ("MAJOR: proxy: remove
support for "dispatch" and "transparent" proxy keywords"), but the
warning message for deprecated "option transparent" wasn't removed
now that the option may no longer be found.

src/cfgparse-listen.c

index 122687aece037a1bf27acc184bc0be77745afd7a..00aeda783f8db34f6174b3516bfd3260caf6a4e6 100644 (file)
@@ -2087,19 +2087,8 @@ stats_error_parsing:
                /* try to match option within cfg_opts */
                if (cfg_parse_listen_match_option(file, linenum, kwm, cfg_opts, &err_code, args,
                                                  PR_MODES, PR_CAP_NONE,
-                                                 &curproxy->options, &curproxy->no_options)) {
-                       if (strcmp(args[1], "transparent") == 0) {
-                               if (!deprecated_directives_allowed) {
-                                       ha_warning("parsing [%s:%d]: option '%s' is deprecated in 3.3 and will be removed in 3.5. "
-                                                  "The modern way to do the same is to create a server with address 0.0.0.0. It is "
-                                                  "still possible to silence this warning by setting 'expose-deprecated-directives' "
-                                                  "in the 'global' section, but do not wait to fix your configuration!\n",
-                                                  file, linenum, args[1]);
-                                       err_code |= ERR_WARN;
-                               }
-                       }
+                                                 &curproxy->options, &curproxy->no_options))
                        goto out;
-               }
                if (err_code & ERR_CODE)
                        goto out;