fix: resolve nil pointer dereference in interaction on TLS request

This commit is contained in:
2025-12-06 00:01:25 +07:00
parent af951b8fa7
commit 368cc0b3e3
4 changed files with 34 additions and 8 deletions

View File

@ -112,7 +112,7 @@ func HandlerTLS(conn net.Conn) {
return
}
cw := NewCustomWriter(conn, dstReader, conn.RemoteAddr())
cw.SetInteraction(sshSession.Interaction)
forwardRequest(cw, reqhf, sshSession)
return
}