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