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:36:23 +0000 (16:36 +0100)
commite09b5a39238a86e470d198595002960d971c03cb
tree4ac9d1f5a8281257ed5f81b3cbfb34d75602677a
parentd9eb3c3de3211478b512ee7f8e548bb78211adf5
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.

(cherry picked from commit c751b4508d9245baa54a19f7658aa7307d76e447)
Signed-off-by: Christopher Faulet <cfaulet@haproxy.com>
src/check.c