Skip to content

"rsync for cloud storage" - Google Drive, S3, Dropbox, Backblaze B2, One Drive, Swift, Hubic, Wasabi, Google Cloud Storage, Azure Blob, Azure Files, Yandex Files

staticcheck: TLS config NameToCertificate is deprecated, should instead let library select the first compatible chain from Certificates

albertonyc70e890966de
diff --git a/fs/fshttp/http.go b/fs/fshttp/http.go
index 9384d2fa4..953a313dd 100644
--- a/fs/fshttp/http.go
+++ b/fs/fshttp/http.go
@@ -70,7 +70,6 @@ func NewTransportCustom(ctx context.Context, customize func(*http.Transport)) ht
log.Fatalf("Failed to load --client-cert/--client-key pair: %v", err)
}
t.TLSClientConfig.Certificates = []tls.Certificate{cert}
- t.TLSClientConfig.BuildNameToCertificate()
}
// Load CA cert