Skip to content

Commit 1c7ef53

Browse files
authored
fix: prevent hanging on win11/arm64 (#47)
1 parent 74ff5d3 commit 1c7ef53

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

cmd/wush/serve.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,7 @@ func newTSNet(direction string, verbose bool) (*tsnet.Server, error) {
231231
srv.Hostname = "wush-" + direction
232232
srv.Ephemeral = true
233233
srv.AuthKey = direction
234-
srv.ControlURL = "http://localhost:8080"
234+
srv.ControlURL = "http://127.0.0.1:8080"
235235
srv.Logf = func(format string, args ...any) {}
236236
srv.UserLogf = func(format string, args ...any) {}
237237
if verbose {

xssh/client.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ func TailnetSSH(ctx context.Context, inv *serpent.Invocation, ts *tsnet.Server,
2727
// }
2828
// }
2929

30-
sshConn, channels, requests, err := ssh.NewClientConn(conn, "localhost:22", &ssh.ClientConfig{
30+
sshConn, channels, requests, err := ssh.NewClientConn(conn, "127.0.0.1:22", &ssh.ClientConfig{
3131
HostKeyCallback: ssh.InsecureIgnoreHostKey(),
3232
})
3333
if err != nil {

0 commit comments

Comments
 (0)