mirror of
https://github.com/haproxy/haproxy.git
synced 2026-04-15 21:59:41 -04: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
1 changed files with 1 additions and 1 deletions
|
|
@ -1557,7 +1557,7 @@ static int connect_conn_chk(struct task *t)
|
|||
}
|
||||
|
||||
ret = SF_ERR_INTERNAL;
|
||||
if (proto->connect)
|
||||
if (proto && proto->connect)
|
||||
ret = proto->connect(conn, check->type, quickack ? 2 : 0);
|
||||
if (s->check.send_proxy && !(check->state & CHK_ST_AGENT)) {
|
||||
conn->send_proxy_ofs = 1;
|
||||
|
|
|
|||
Loading…
Reference in a new issue