diff --git a/gobgp/common.go b/gobgp/common.go index 12c08256..f61cf2ad 100644 --- a/gobgp/common.go +++ b/gobgp/common.go @@ -386,7 +386,7 @@ func connGrpc() *grpc.ClientConn { target = fmt.Sprintf("[%s]:%d", globalOpts.Host, globalOpts.Port) } - conn, err := grpc.Dial(target, timeout) + conn, err := grpc.Dial(target, timeout, grpc.WithBlock(), grpc.WithInsecure()) if err != nil { fmt.Println(err) os.Exit(1)