fix: ssh portmap redo ssh dial (#170)

This commit is contained in:
naison
2024-02-17 19:25:35 +08:00
committed by GitHub
parent 46fcf5521f
commit 01e3456ad3
3 changed files with 64 additions and 62 deletions

View File

@@ -82,7 +82,7 @@ func (w *wsHandler) handle(ctx context.Context) {
if err != nil {
return
}
err = util.PortMapUntil(ctx, cli, remote, local)
err = util.PortMapUntil(ctx, w.sshConfig, remote, local)
if err != nil {
w.Log("Port map error: %v", err)
return