mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
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 <xigua67damn@gmail.com>
This commit is contained in:
parent
2e6eebef85
commit
ecb52d7d48
@ -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}
|
||||
|
Loading…
x
Reference in New Issue
Block a user