From c5eff44987155c7c1e9e577b168a5dc4083d08bc Mon Sep 17 00:00:00 2001 From: Willy Tarreau Date: Fri, 9 Oct 2026 09:26:46 +0200 Subject: [PATCH] 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. --- src/cfgparse-listen.c | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) 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; -- 2.47.3