]> git.kaiwu.me - haproxy.git/commit
MINOR: cfgparse-listen: introduce proxy_parse_removed_kw() and use it
authorWilly Tarreau <w@1wt.eu>
Wed, 7 Oct 2026 15:46:51 +0000 (17:46 +0200)
committerWilly Tarreau <w@1wt.eu>
Fri, 9 Oct 2026 07:31:07 +0000 (09:31 +0200)
commitff391a74619e2311b93730197223515ddda39dfe
treed8db118b46f30c6b6e0c38491c1ed69e5a5047e0
parent66813b59ebf0cdf469e530cf21047bb3739c9f23
MINOR: cfgparse-listen: introduce proxy_parse_removed_kw() and use it

A significant number of cfgparse_listen()'s keywords are handled
specifically because they're obsolete and continue to deliver a detailed
indication about what to use instead. The most complicated ones are
"dispatch" and "monitor-net" which even suggest the exact line to use
in order to replace them.

Let's introduce proxy_parse_removed_kw() to handle such keywords and
their excentricities. The function is just a regular keyword parser,
so that the keywords it handles are now in the standard array and point
to it.

For now we only implement "monitor-net" and "dispatch". The output
messages remain exactly the same.
src/cfgparse-listen.c