Skip to content

Commit

Permalink
Allow using interop client for making Traffic Director RPCs (#4291)
Browse files Browse the repository at this point in the history
  • Loading branch information
apolcyn authored Mar 26, 2021
1 parent 80e380e commit 2456c5c
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion interop/client/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ import (
"google.golang.org/grpc/interop"
"google.golang.org/grpc/resolver"
"google.golang.org/grpc/testdata"
_ "google.golang.org/grpc/xds/googledirectpath"

testgrpc "google.golang.org/grpc/interop/grpc_testing"
)
Expand Down Expand Up @@ -126,7 +127,10 @@ func main() {
}

resolver.SetDefaultScheme("dns")
serverAddr := net.JoinHostPort(*serverHost, strconv.Itoa(*serverPort))
serverAddr := *serverHost
if *serverPort != 0 {
serverAddr = net.JoinHostPort(*serverHost, strconv.Itoa(*serverPort))
}
var opts []grpc.DialOption
switch credsChosen {
case credsTLS:
Expand Down

0 comments on commit 2456c5c

Please sign in to comment.