Skip to content

Commit

Permalink
server/etcdmain: eliminate deprecated tlsConfig.BuildNameToCertificate()
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
callthingsoff committed Apr 13, 2024
1 parent 2e6eebe commit ecb52d7
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion server/etcdmain/grpc_proxy.go
Original file line number Diff line number Diff line change
Expand Up @@ -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}
Expand Down

0 comments on commit ecb52d7

Please sign in to comment.