Skip to content

Commit b4b10b0

Browse files
committed
fix: Run Tailnet SSH connections in a goroutine
This was causing SSH connections in parallel to fail 🤦!
1 parent be273a2 commit b4b10b0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

agent/agent.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,7 @@ func (a *agent) runTailnet(ctx context.Context, derpMap *tailcfg.DERPMap) {
219219
if err != nil {
220220
return
221221
}
222-
a.sshServer.HandleConn(a.stats.wrapConn(conn))
222+
go a.sshServer.HandleConn(a.stats.wrapConn(conn))
223223
}
224224
}()
225225
reconnectingPTYListener, err := a.network.Listen("tcp", ":"+strconv.Itoa(tailnetReconnectingPTYPort))

0 commit comments

Comments
 (0)