From 7043a05370c622ea9effb1097d42a4477dfe0ba2 Mon Sep 17 00:00:00 2001 From: Alex Polcyn Date: Wed, 20 Jun 2018 17:19:25 +0000 Subject: [PATCH] Set dns as default scheme in interop client --- interop/client/client.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/interop/client/client.go b/interop/client/client.go index c8acae94b295..0d477481ba99 100644 --- a/interop/client/client.go +++ b/interop/client/client.go @@ -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") }