From 8997b5fa08730b06a4b589dba174c115796fbb7b Mon Sep 17 00:00:00 2001 From: Cesar Ghali <cesarghali@users.noreply.github.com> Date: Thu, 20 Sep 2018 16:48:47 -0700 Subject: [PATCH] credentials/alts: Pass the target name to ALTS handshaker (#2319) --- credentials/alts/alts.go | 1 + 1 file changed, 1 insertion(+) 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,