chore: enable TLS client cache for HTTPS where appropriate (#9721)

https://forum.syncthing.net/t/infrastructure-report-discovery-stuff/22819/4
This commit is contained in:
Jakob Borg
2024-09-24 08:55:04 +02:00
committed by GitHub
parent a8e2c8edb6
commit cba163a1fd
5 changed files with 17 additions and 8 deletions
+2
View File
@@ -352,6 +352,8 @@ func (s *Service) sendUsageReport(ctx context.Context) error {
Proxy: http.ProxyFromEnvironment,
TLSClientConfig: &tls.Config{
InsecureSkipVerify: s.cfg.Options().URPostInsecurely,
MinVersion: tls.VersionTLS12,
ClientSessionCache: tls.NewLRUClientSessionCache(0),
},
},
}