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

The keyword is now registered in cfg_kws and parsed by
proxy_parse_capture(), making it discoverable via "-dKcfg".

Note that the code was rearranged a bit so that the checks for defaults
section that were common between the 3 variants are now made only once
at the beginning of the function. A little bit more factoring was done
but overall nothing fancy.
src/cfgparse-listen.c