]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: tcpcheck: Support 2-steps args resolution in defaults sections
authorChristopher Faulet <cfaulet@haproxy.com>
Wed, 13 Oct 2021 13:18:36 +0000 (15:18 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Fri, 15 Oct 2021 12:12:19 +0000 (14:12 +0200)
commit6ff7de5d6438679c2376611077b5cd58c664f8ea
treedc7ec6572d66f3aa05476cb2b7fa2277434930c1
parent52b8a43d4e85a9f2429cfe7ca58d38cd64829a0d
MINOR: tcpcheck: Support 2-steps args resolution in defaults sections

With the commit eaba25dd9 ("BUG/MINOR: tcpcheck: Don't use arg list for
default proxies during parsing"), we restricted the use of sample fetch in
tcpcheck rules defined in a defaults section to those depending on explicit
arguments only. This means a tcpcheck rules defined in a defaults section
cannot rely on argument unresolved during the configuration parsing.

Thanks to recent changes, it is now possible again.

This patch is mandatory to support TCP/HTTP rules in defaults sections.
src/cfgparse-listen.c
src/log.c
src/tcpcheck.c
src/vars.c