MINOR: check: use auto SNI for QUIC checks

By default, check SNI is set to the Host header when an HTTPS check is
performed. This patch extends this mode so that it is also active when
QUIC checks are executed.

This patch should improve reuse rate with checks. Indeed, SNI is also
already automatically set for normal traffic. The same value must be
used during check so that a connection hash match can be found.
This commit is contained in:
Amaury Denoyelle 2025-10-30 11:39:42 +01:00
parent 333deef485
commit ca5a5f37a1

View File

@ -1234,8 +1234,10 @@ static inline int tcpcheck_connect_use_ssl(const struct check *check,
{
if (connect->options & TCPCHK_OPT_SSL)
return 1;
if (connect->options & TCPCHK_OPT_DEFAULT_CONNECT)
return (check->xprt == xprt_get(XPRT_SSL));
if (connect->options & TCPCHK_OPT_DEFAULT_CONNECT) {
return (check->xprt == xprt_get(XPRT_SSL) ||
check->xprt == xprt_get(XPRT_QUIC));
}
return 0;
}