!121 fix: rdp ssh

* fix: rdp ssh
This commit is contained in:
zongyangleo
2024-05-21 04:06:13 +00:00
committed by Coder慌
parent c4cb4234fd
commit a7632fbf58
5 changed files with 47 additions and 19 deletions

View File

@@ -89,7 +89,7 @@ func (stm *SshTunnelMachine) OpenSshTunnel(id string, ip string, port int) (expo
return "", 0, err
}
localHost := "127.0.0.1"
localHost := "0.0.0.0"
localAddr := fmt.Sprintf("%s:%d", localHost, localPort)
listener, err := net.Listen("tcp", localAddr)
if err != nil {