ssh/tailssh: enable recording of non-pty sessions

Updates tailscale/corp#9967

Signed-off-by: Maisem Ali <maisem@tailscale.com>
This commit is contained in:
Maisem Ali
2023-03-23 12:32:44 -07:00
committed by Maisem Ali
parent 8765568373
commit 8a246487c2
2 changed files with 3 additions and 5 deletions

View File

@@ -1130,10 +1130,7 @@ func (ss *sshSession) recorders() []netip.AddrPort {
}
func (ss *sshSession) shouldRecord() bool {
// for now only record pty sessions
// TODO(bradfitz,maisem): support recording non-pty stuff too.
_, _, isPtyReq := ss.Pty()
return isPtyReq && len(ss.recorders()) > 0
return len(ss.recorders()) > 0
}
type sshConnInfo struct {