mirror of
https://github.com/rclone/rclone.git
synced 2025-03-03 01:42:25 +01:00
staticcheck: TLS config NameToCertificate is deprecated, should instead let library select the first compatible chain from Certificates
This commit is contained in:
parent
986bb17656
commit
c70e890966
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user