diff --git a/client/client.go b/client/client.go index af4ed8c80bb9..ab9fee24cc15 100644 --- a/client/client.go +++ b/client/client.go @@ -75,6 +75,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