credentials/alts: Pass the target name to ALTS handshaker (#2319)

This commit is contained in:
Cesar Ghali
2018-09-20 16:48:47 -07:00
committed by GitHub
parent 35c3afad17
commit 8997b5fa08

View File

@ -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,