mirror of https://github.com/grpc/grpc-go.git
credentials/alts: Pass the target name to ALTS handshaker (#2319)
This commit is contained in:
parent
35c3afad17
commit
8997b5fa08
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue