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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

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,