From 0025c7af35771b20fbf706c9ab35f798aaedca91 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Javier=20Provecho=20Fern=C3=A1ndez=20=28Okteto=29?= <92427625+jpf-okteto@users.noreply.github.com> Date: Fri, 10 Nov 2023 20:42:07 +0100 Subject: [PATCH] fix: update new ClientOpt from 5509e40 with origin --- client/client.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/client.go b/client/client.go index c1567aaa32c4..59eef16caadc 100644 --- a/client/client.go +++ b/client/client.go @@ -76,6 +76,7 @@ func New(ctx context.Context, address string, opts ...ClientOpt) (*Client, error } gopts = append(gopts, opt) needWithInsecure = false + tlsServerName = credInfo.ServerName } if wt, ok := o.(*withTracer); ok { customTracer = true @@ -251,7 +252,6 @@ func loadCredentialsAndSystemRoots(opts *withCredentialsAndSystemRoots) (grpc.Di return nil, errors.Wrap(err, "could not read certificate/key") } cfg.Certificates = []tls.Certificate{cert} - cfg.BuildNameToCertificate() } return grpc.WithTransportCredentials(credentials.NewTLS(cfg)), nil