diff options
Diffstat (limited to 'plugin/grpc/proxy.go')
-rw-r--r-- | plugin/grpc/proxy.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/plugin/grpc/proxy.go b/plugin/grpc/proxy.go index f2bee95c0..9a96e9504 100644 --- a/plugin/grpc/proxy.go +++ b/plugin/grpc/proxy.go @@ -12,6 +12,7 @@ import ( "google.golang.org/grpc" "google.golang.org/grpc/codes" "google.golang.org/grpc/credentials" + "google.golang.org/grpc/credentials/insecure" "google.golang.org/grpc/status" ) @@ -33,7 +34,7 @@ func newProxy(addr string, tlsConfig *tls.Config) (*Proxy, error) { if tlsConfig != nil { p.dialOpts = append(p.dialOpts, grpc.WithTransportCredentials(credentials.NewTLS(tlsConfig))) } else { - p.dialOpts = append(p.dialOpts, grpc.WithInsecure()) + p.dialOpts = append(p.dialOpts, grpc.WithTransportCredentials(insecure.NewCredentials())) } conn, err := grpc.Dial(p.addr, p.dialOpts...) |