mirror of
https://github.com/rclone/rclone.git
synced 2026-10-01 18:25:36 -04:00
staticcheck: TLS config NameToCertificate is deprecated, should instead let library select the first compatible chain from Certificates
This commit is contained in:
1 parent
986bb17656
commit
c70e890966
1 file changed
-1
@@ -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
|
||||
|
||||
Reference in new issue
Block a user