ClientSessionCache now used for DoT and DoH too

This commit is contained in:
justus-forks
2022-09-14 20:18:29 +02:00
committed by GitHub
parent 32615418d5
commit 1dd831b04e
+1
View File
@@ -199,6 +199,7 @@ func (n *bootstrapper) createTLSConfig(host string) *tls.Config {
MinVersion: tls.VersionTLS12,
InsecureSkipVerify: n.options.InsecureSkipVerify,
VerifyPeerCertificate: n.options.VerifyServerCertificate,
ClientSessionCache: tls.NewLRUClientSessionCache(1),
}
// Depending on the URL scheme, we choose what ALPN will be advertised by