update: improve http tunnel and slug extraction from domain

This commit is contained in:
2025-02-07 16:32:30 +07:00
parent 82eb7af7a6
commit dfc57cf542
5 changed files with 103 additions and 107 deletions

View File

@ -39,8 +39,6 @@ func New(conn *ssh.ServerConn, sshChannel <-chan ssh.NewChannel, req <-chan *ssh
Done: make(chan bool),
}
go session.handleGlobalRequest()
go func() {
for newChannel := range sshChannel {
go session.HandleSessionChannel(newChannel)
@ -65,5 +63,4 @@ func (session *Session) Close() {
if err := session.Connection.Close(); err != nil {
fmt.Println("Error closing connection : ", err.Error())
}
}