fix: Run Tailnet SSH connections in a goroutine (#3838)

This was causing SSH connections in parallel to fail 🤦!
This commit is contained in:
Kyle Carberry
2022-09-02 11:58:15 -05:00
committed by GitHub
parent 3be7bb58b4
commit de219d966d
3 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -219,7 +219,7 @@ func (a *agent) runTailnet(ctx context.Context, derpMap *tailcfg.DERPMap) {
if err != nil {
return
}
a.sshServer.HandleConn(a.stats.wrapConn(conn))
go a.sshServer.HandleConn(a.stats.wrapConn(conn))
}
}()
reconnectingPTYListener, err := a.network.Listen("tcp", ":"+strconv.Itoa(tailnetReconnectingPTYPort))