mirror of
http://git.haproxy.org/git/haproxy.git
synced 2026-02-05 04:23:22 +02:00
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:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user