mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2025-09-22 14:21:25 +02:00
MINOR: check: Fix checks when using SRV records.
When started, a server may not yet have an associated protocol, so don't bother trying to run the checks until it is there.
This commit is contained in:
parent
8da5f98fbe
commit
b68fda40d7
@ -1557,7 +1557,7 @@ static int connect_conn_chk(struct task *t)
|
|||||||
}
|
}
|
||||||
|
|
||||||
ret = SF_ERR_INTERNAL;
|
ret = SF_ERR_INTERNAL;
|
||||||
if (proto->connect)
|
if (proto && proto->connect)
|
||||||
ret = proto->connect(conn, check->type, quickack ? 2 : 0);
|
ret = proto->connect(conn, check->type, quickack ? 2 : 0);
|
||||||
if (s->check.send_proxy && !(check->state & CHK_ST_AGENT)) {
|
if (s->check.send_proxy && !(check->state & CHK_ST_AGENT)) {
|
||||||
conn->send_proxy_ofs = 1;
|
conn->send_proxy_ofs = 1;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user