]> git.kaiwu.me - haproxy.git/commit
MINOR: filters: Use a proxy flag to detect use of legacy 'filter' directive
authorChristopher Faulet <cfaulet@haproxy.com>
Fri, 2 Oct 2026 09:44:06 +0000 (11:44 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Fri, 9 Oct 2026 14:17:36 +0000 (16:17 +0200)
commitb61dca1432a9e70e0ef22ec067e66bd52c406f34
tree4ef6e23c1d28a8e4744739dc2552bf4a9ef495f5
parent286a264aee7cf4deec6520b6acb25d1d58c4a1e7
MINOR: filters: Use a proxy flag to detect use of legacy 'filter' directive

Replace the FLT_CFG_FL_LEGACY flag set on each filter configuration with
the PR_FL_FILTER_LEGACY proxy flag, set when an explicit legacy "filter"
directive is parsed.

The legacy or instance mode is a property of the proxy, not of an
individual filter configuration, so flt_check_config_mode() no longer
needs to walk px->filter_configs to detect a legacy filter. Add the
inline helper flt_use_legacy_filter() to expose the proxy flag and use it
in flt_check_config_mode().

This prepares selecting the legacy filter configurations or the filter
instances on a per-proxy basis.
include/haproxy/filters-t.h
include/haproxy/filters.h
include/haproxy/proxy-t.h
src/filters.c
src/haload.c