Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 29983eb

Browse files
committed
Track SSH connections
1 parent 5736f49 commit 29983eb

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

agent/agent.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -304,7 +304,9 @@ func (a *agent) createTailnet(ctx context.Context, derpMap *tailcfg.DERPMap) (_
304304
if err != nil {
305305
return
306306
}
307-
go a.sshServer.HandleConn(conn)
307+
_ = a.trackConnGoroutine(func() {
308+
a.sshServer.HandleConn(conn)
309+
})
308310
}
309311
}); err != nil {
310312
return nil, err

0 commit comments

Comments
 (0)