Fix grpc.Dial usage in sshpiperd (#436)
* Fix grpc.Dial usage in sshpiperd * fix dns not found * Update dependencies in go.mod and go.sum files * Refactor grpc.NewClient to remove unnecessary grpc.WithBlock() option
This commit is contained in:
parent
57d0e21787
commit
08d0e23d60
4 changed files with 31 additions and 37 deletions
|
|
@ -80,7 +80,7 @@ func createNetGrpcPlugin(args []string) (grpcPlugin *plugin.GrpcPlugin, err erro
|
|||
secopt = grpc.WithTransportCredentials(credentials.NewTLS(config))
|
||||
}
|
||||
|
||||
conn, err := grpc.Dial(c.String("endpoint"), secopt, grpc.WithBlock())
|
||||
conn, err := grpc.NewClient(c.String("endpoint"), secopt)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue