]> git.kaiwu.me - haproxy.git/commit
CLEANUP: cfgparse-listen: move "acl" to its own parser
authorWilly Tarreau <w@1wt.eu>
Wed, 7 Oct 2026 16:16:50 +0000 (18:16 +0200)
committerWilly Tarreau <w@1wt.eu>
Fri, 9 Oct 2026 07:31:07 +0000 (09:31 +0200)
commitd87af002b0b725bd2922fdbaf4e81749bf4bb15f
treee2faa3ea2d561a3dcde8cbf25488b1760fdd0721
parent4a5774d135e5a5bf7264b397ba4a02545151197b
CLEANUP: cfgparse-listen: move "acl" to its own parser

The keyword is now registered in cfg_kws and parsed by proxy_parse_acl(),
making it discoverable via "-dKcfg". Care was taken to release the
errptr returned by parse_acl().

The code could also have been moved to acl.c but it appeared strange there
because acl.c doesn't really deal with first-level keywords and doesn't
care about proxies, and here we're in a proxy section, so aftre all,
cfgparse-listen seems to remain the best place for the function.
src/cfgparse-listen.c