We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 80e380e commit 2456c5cCopy full SHA for 2456c5c
interop/client/client.go
@@ -34,6 +34,7 @@ import (
34
"google.golang.org/grpc/interop"
35
"google.golang.org/grpc/resolver"
36
"google.golang.org/grpc/testdata"
37
+ _ "google.golang.org/grpc/xds/googledirectpath"
38
39
testgrpc "google.golang.org/grpc/interop/grpc_testing"
40
)
@@ -126,7 +127,10 @@ func main() {
126
127
}
128
129
resolver.SetDefaultScheme("dns")
- serverAddr := net.JoinHostPort(*serverHost, strconv.Itoa(*serverPort))
130
+ serverAddr := *serverHost
131
+ if *serverPort != 0 {
132
+ serverAddr = net.JoinHostPort(*serverHost, strconv.Itoa(*serverPort))
133
+ }
134
var opts []grpc.DialOption
135
switch credsChosen {
136
case credsTLS:
0 commit comments