]> git.kaiwu.me - haproxy.git/commit
MINOR: filters: Add flt_has_filter() and use it in proxy_finalize()
authorChristopher Faulet <cfaulet@haproxy.com>
Fri, 2 Oct 2026 16:05:46 +0000 (18:05 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Fri, 9 Oct 2026 14:17:36 +0000 (16:17 +0200)
commit319f83816b8186e047a2591cb94bcadcf5a52fd0
tree80824106037d8368680e05415ce1b0de9ed6182f
parentbf32f28b2cce96cc45a6f8b9b96821115eccb9df
MINOR: filters: Add flt_has_filter() and use it in proxy_finalize()

Add flt_has_filter() returning whether a proxy has at least one filter,
from the legacy configurations or from the flattened instances. Use it
in proxy_finalize() instead of testing px->filter_configs directly, so
the filter analyzers are also enabled for proxies using the filter
instances.

proxy_finalize() runs after the filter instances are flattened, so the
helper can safely inspect px->filter_instances.
include/haproxy/filters.h
src/filters.c
src/proxy.c