This commit is contained in:
Eugene Pankov 2020-03-19 12:47:38 +01:00
parent ef5c9b52a5
commit 2b8bb47aed

View File

@ -245,6 +245,7 @@ export class SSHSession extends BaseSession {
socket.destroy()
return
}
if (stream) {
stream.pipe(socket)
socket.pipe(stream)
stream.on('close', () => {
@ -254,6 +255,7 @@ export class SSHSession extends BaseSession {
stream.close()
})
}
}
)
}).then(() => {
this.emitServiceMessage(colors.bgGreen.black(' -> ') + ` Forwaded ${fw}`)