forked from TrueCloudLab/rclone
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
1 changed files with 0 additions and 1 deletions
|
@ -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)
|
log.Fatalf("Failed to load --client-cert/--client-key pair: %v", err)
|
||||||
}
|
}
|
||||||
t.TLSClientConfig.Certificates = []tls.Certificate{cert}
|
t.TLSClientConfig.Certificates = []tls.Certificate{cert}
|
||||||
t.TLSClientConfig.BuildNameToCertificate()
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Load CA cert
|
// Load CA cert
|
||||||
|
|
Loading…
Add table
Reference in a new issue