From c70e890966debf03c8563d76e9ff865edfeede04 Mon Sep 17 00:00:00 2001 From: albertony <12441419+albertony@users.noreply.github.com> Date: Fri, 24 Jun 2022 18:40:43 +0200 Subject: [PATCH] staticcheck: TLS config NameToCertificate is deprecated, should instead let library select the first compatible chain from Certificates --- fs/fshttp/http.go | 1 - 1 file changed, 1 deletion(-) 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