BUG/MINOR: cfgparse: remove the correct option on httpcheck send-state warning
authorWilly Tarreau <w@1wt.eu>
Fri, 31 May 2024 16:30:16 +0000 (18:30 +0200)
committerAmaury Denoyelle <adenoyelle@haproxy.com>
Thu, 6 Jun 2024 12:06:52 +0000 (14:06 +0200)
commit6d0ac5d07a10785be7a0e40a48ec09351bfc58c8
tree9dd2a98d0e4b0a4bef0c51837d18274102e818a5
parent5590ada4731a1f75004675680b4bdca61fa4c507
BUG/MINOR: cfgparse: remove the correct option on httpcheck send-state warning

In GH issue #2586 @Bbulatov reported a bug where the http-check
send-state flag is removed from options instead of options2 when
http-check is disabled. It only has an effect when this option is
set and http-check disabled, where it displays a warning indicating
this will be ignored. The option removed instead is srvtcpka when
this happens. It's likely that both options being so minor, nobody
ever faced it.

This can be backported to all versions.

(cherry picked from commit d8194fab8205364d65cf5364e6daeca517eb75e0)
Signed-off-by: Amaury Denoyelle <adenoyelle@haproxy.com>
src/cfgparse.c