interop: set dns as default scheme in interop client (#2165)

this is to allow use of grpclb-in-DNS in the interop client
This commit is contained in:
apolcyn 2018-06-20 12:19:01 -07:00 committed by Menghan Li
parent 2ab07fd5cb
commit b519e3d28d
1 changed files with 2 additions and 0 deletions

View File

@ -31,6 +31,7 @@ import (
"google.golang.org/grpc/grpclog"
"google.golang.org/grpc/interop"
testpb "google.golang.org/grpc/interop/grpc_testing"
"google.golang.org/grpc/resolver"
"google.golang.org/grpc/testdata"
)
@ -70,6 +71,7 @@ var (
func main() {
flag.Parse()
resolver.SetDefaultScheme("dns")
if *useTLS && *useALTS {
grpclog.Fatalf("use_tls and use_alts cannot be both set to true")
}