refactor: move ssh jump to util (#184)

Co-authored-by: wencaiwulue <895703375@qq.com>
This commit is contained in:
naison
2024-03-03 11:49:44 +08:00
committed by GitHub
parent e232bf902e
commit 0730cb12b7
12 changed files with 272 additions and 268 deletions

View File

@@ -54,7 +54,7 @@ func (svr *Server) Proxy(req *rpc.ConnectRequest, resp rpc.Daemon_ProxyServer) e
DefValue: file,
})
var path string
path, err = handler.SshJump(ctx, sshConf, flags, false)
path, err = util.SshJump(ctx, sshConf, flags, false)
if err != nil {
return err
}