diff --git a/src/checks.c b/src/checks.c index 8ca208954..cae2e3e3f 100644 --- a/src/checks.c +++ b/src/checks.c @@ -2757,6 +2757,8 @@ static int tcpcheck_main(struct check *check) set_host_port(&conn->addr.to, check->current_step->port); else if (check->port) set_host_port(&conn->addr.to, check->port); + else if (s->svc_port) + set_host_port(&conn->addr.to, s->svc_port); if (check->current_step->conn_opts & TCPCHK_OPT_SSL) { xprt = xprt_get(XPRT_SSL);