BUG/MINOR: tcpcheck: Don't warn on unused rules if check option is after
authorChristopher Faulet <cfaulet@haproxy.com>
Fri, 13 Nov 2020 07:55:57 +0000 (08:55 +0100)
committerChristopher Faulet <cfaulet@haproxy.com>
Fri, 13 Nov 2020 15:26:10 +0000 (16:26 +0100)
commitc751b4508d9245baa54a19f7658aa7307d76e447
treee01299ce3df0147375e6040dc6f3542319375b2f
parentc7ba91039a7b0703971efd791ca2ca609afedb96
BUG/MINOR: tcpcheck: Don't warn on unused rules if check option is after

When tcp-check or http-check rules are used, if the corresponding check option
(option tcp-check and option httpchk) is declared after the ruleset, a warning
is emitted about an unused check ruleset while there is no problem in reality.

This patch must be backported as far as 2.2.
src/check.c