mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2025-12-01 15:51:01 +01: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:
parent
333deef485
commit
ca5a5f37a1
@ -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;
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user