feat: log incoming requests to the user's terminal

This commit is contained in:
2025-02-07 18:30:23 +07:00
parent dfc57cf542
commit d5829ffd0d
9 changed files with 105 additions and 5 deletions

View File

@ -50,8 +50,9 @@ func New(conn *ssh.ServerConn, sshChannel <-chan ssh.NewChannel, req <-chan *ssh
func (session *Session) Close() {
session.Done <- true
session.Listener.Close()
if session.TunnelType != HTTP {
session.Listener.Close()
}
for _, ch := range session.ConnChannels {
if err := ch.Close(); err != nil {