mirror of
http://git.haproxy.org/git/haproxy.git/
synced 2025-02-23 14:16:53 +00:00
BUG/MINOR: checks: Fix test on http-check rulesets during config validity check
When checking the config validity of the http-check rulesets, the test on the ruleset type is inverted. So a warning about ignored directive is emitted when the config is valid and omitted when it should be reported. No backport needed.
This commit is contained in:
parent
5cf2dfc5fd
commit
c0fcbe4150
@ -2511,7 +2511,7 @@ int check_config_validity()
|
|||||||
}
|
}
|
||||||
|
|
||||||
if ((curproxy->options2 & PR_O2_CHK_ANY) == PR_O2_TCPCHK_CHK &&
|
if ((curproxy->options2 & PR_O2_CHK_ANY) == PR_O2_TCPCHK_CHK &&
|
||||||
(curproxy->tcpcheck_rules.flags & TCPCHK_RULES_PROTO_CHK) == TCPCHK_RULES_HTTP_CHK) {
|
(curproxy->tcpcheck_rules.flags & TCPCHK_RULES_PROTO_CHK) != TCPCHK_RULES_HTTP_CHK) {
|
||||||
if (curproxy->options & PR_O_DISABLE404) {
|
if (curproxy->options & PR_O_DISABLE404) {
|
||||||
ha_warning("config : '%s' will be ignored for %s '%s' (requires 'option httpchk').\n",
|
ha_warning("config : '%s' will be ignored for %s '%s' (requires 'option httpchk').\n",
|
||||||
"disable-on-404", proxy_type_str(curproxy), curproxy->id);
|
"disable-on-404", proxy_type_str(curproxy), curproxy->id);
|
||||||
|
Loading…
Reference in New Issue
Block a user