From ecb52d7d48aea9cc902fb7d052b25c04d88b7090 Mon Sep 17 00:00:00 2001 From: Jes Cok Date: Sat, 13 Apr 2024 11:41:18 +0800 Subject: [PATCH] server/etcdmain: eliminate deprecated tlsConfig.BuildNameToCertificate() As the doc is saying: Deprecated: NameToCertificate only allows associating a single certificate with a given name. Leave that field nil to let the library select the first compatible chain from Certificates. Signed-off-by: Jes Cok --- server/etcdmain/grpc_proxy.go | 1 - 1 file changed, 1 deletion(-) diff --git a/server/etcdmain/grpc_proxy.go b/server/etcdmain/grpc_proxy.go index f3c789f5f42..01fe1b80beb 100644 --- a/server/etcdmain/grpc_proxy.go +++ b/server/etcdmain/grpc_proxy.go @@ -576,7 +576,6 @@ func newHTTPTransport(ca, cert, key string) (*http.Transport, error) { Certificates: []tls.Certificate{keyPair}, RootCAs: caPool, } - tlsConfig.BuildNameToCertificate() tr.TLSClientConfig = tlsConfig } else if grpcProxyInsecureSkipTLSVerify { tlsConfig := &tls.Config{InsecureSkipVerify: grpcProxyInsecureSkipTLSVerify}