mirror of https://github.com/grpc/grpc-go.git
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:
parent
2ab07fd5cb
commit
b519e3d28d
|
|
@ -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")
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue