mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2025-08-06 23:27:04 +02:00
BUG/MINOR: proxy/server: Skip per-proxy/server post-check for disabled proxies
per-proxy and per-server post-check callback functions must be skipped for disabled proxies because most of the configuration validity check is skipped for these proxies. This patch must be backported as far as 2.1.
This commit is contained in:
parent
400829cd2c
commit
d5bd824b81
@ -1958,6 +1958,9 @@ static void init(int argc, char **argv)
|
||||
struct post_proxy_check_fct *ppcf;
|
||||
struct post_server_check_fct *pscf;
|
||||
|
||||
if (px->disabled)
|
||||
continue;
|
||||
|
||||
list_for_each_entry(pscf, &post_server_check_list, list) {
|
||||
for (srv = px->srv; srv; srv = srv->next)
|
||||
err_code |= pscf->fct(srv);
|
||||
|
Loading…
Reference in New Issue
Block a user