]> git.ipfire.org Git - thirdparty/haproxy.git/commit
CLEANUP: cfgparse: factor proxy vs log-forward collisions
authorWilly Tarreau <w@1wt.eu>
Fri, 20 Sep 2024 12:13:14 +0000 (14:13 +0200)
committerWilly Tarreau <w@1wt.eu>
Fri, 20 Sep 2024 12:13:14 +0000 (14:13 +0200)
commit5b221d1e415b80e7ff1a8a8ad8740a7282858583
tree93474ef0d123d057b1f97d65978415130ff9c788
parentb325453c36958249b4a3e9d8225b34db2a3047c4
CLEANUP: cfgparse: factor proxy vs log-forward collisions

This simplifies the check added in 1a38684fbc ("MEDIUM: cfgparse:
detect collisions between defaults and log-forward"), by factoring it
with the other existing one.

The tests are ugly in that code because a first block tests pure
proxies, a second one proxies or defaults and inside that one we
have special cases for defaults. Let's just move the tests to the
"any proxy type" block.
src/cfgparse-listen.c