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

This commit is contained in:
albertony 2022-06-24 18:40:43 +02:00
parent 986bb17656
commit c70e890966
1 changed files with 0 additions and 1 deletions

View File

@ -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