From: Willy Tarreau Date: Fri, 9 Oct 2026 07:26:46 +0000 (+0200) Subject: CLEANUP: proxy: adapt the error message for removed "option transparent" X-Git-Tag: v3.5-dev9~156 X-Git-Url: https://git.kaiwu.me/$%7BISSUES%7D/static/gitweb.js?a=commitdiff_plain;h=c5eff44987155c7c1e9e577b168a5dc4083d08bc;p=haproxy.git CLEANUP: proxy: adapt the error message for removed "option transparent" 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. --- diff --git a/src/cfgparse-listen.c b/src/cfgparse-listen.c index 122687aec..00aeda783 100644 --- a/src/cfgparse-listen.c +++ b/src/cfgparse-listen.c @@ -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;