]> git.kaiwu.me - haproxy.git/commit
CLEANUP: cfgparse-global: move "unix-bind" to its own parser
authorWilly Tarreau <w@1wt.eu>
Wed, 7 Oct 2026 14:44:49 +0000 (16:44 +0200)
committerWilly Tarreau <w@1wt.eu>
Fri, 9 Oct 2026 07:31:07 +0000 (09:31 +0200)
commitee3346360807fa2e3cd0fdf7ce3e96b4b15265fb
tree87705a158496366426e0e69e5af5de9486d5c2f7
parent4422b2d85b112c45ebb2729ba41ab8495b98a3fa
CLEANUP: cfgparse-global: move "unix-bind" to its own parser

The "unix-bind" keyword even had its own args loop in cfg_parse_global().
It's now registered in cfg_kws and parsed by cfg_parse_global_unix_bind(),
making it discoverable via "-dKcfg". The code was slightly restructured,
particularly the long chain of "if (...) { ...; continue; }" was simplified
a bit.

Like in a few previous patches, the duplicate test for "prefix" now just
emits a warning, and the result of strdup() is tested.
src/cfgparse-global.c