diff --git a/credentials/alts/alts.go b/credentials/alts/alts.go index 3bb00142..0d3688a2 100644 --- a/credentials/alts/alts.go +++ b/credentials/alts/alts.go @@ -190,6 +190,7 @@ func (g *altsTC) ClientHandshake(ctx context.Context, addr string, rawConn net.C }() opts := handshaker.DefaultClientHandshakerOptions() + opts.TargetName = addr opts.TargetServiceAccounts = g.accounts opts.RPCVersions = &altspb.RpcProtocolVersions{ MaxRpcVersion: maxRPCVersion,