Update api.ts

Fix typos
This commit is contained in:
Harsh Gadgil
2020-12-03 19:09:26 -05:00
committed by GitHub
parent bc5e6e9535
commit 225760a9a5

View File

@@ -246,7 +246,7 @@ export class SSHSession extends BaseSession {
fw.targetPort, fw.targetPort,
(err, stream) => { (err, stream) => {
if (err) { if (err) {
this.emitServiceMessage(colors.bgRed.black(' X ') + ` Remote has rejected the forwaded connection via ${fw}: ${err}`) this.emitServiceMessage(colors.bgRed.black(' X ') + ` Remote has rejected the forwarded connection via ${fw}: ${err}`)
socket.destroy() socket.destroy()
return return
} }
@@ -263,7 +263,7 @@ export class SSHSession extends BaseSession {
} }
) )
}).then(() => { }).then(() => {
this.emitServiceMessage(colors.bgGreen.black(' -> ') + ` Forwaded ${fw}`) this.emitServiceMessage(colors.bgGreen.black(' -> ') + ` Forwarded ${fw}`)
this.forwardedPorts.push(fw) this.forwardedPorts.push(fw)
}).catch(e => { }).catch(e => {
this.emitServiceMessage(colors.bgRed.black(' X ') + ` Failed to forward port ${fw}: ${e}`) this.emitServiceMessage(colors.bgRed.black(' X ') + ` Failed to forward port ${fw}: ${e}`)
@@ -280,7 +280,7 @@ export class SSHSession extends BaseSession {
resolve() resolve()
}) })
}) })
this.emitServiceMessage(colors.bgGreen.black(' <- ') + ` Forwaded ${fw}`) this.emitServiceMessage(colors.bgGreen.black(' <- ') + ` Forwarded ${fw}`)
this.forwardedPorts.push(fw) this.forwardedPorts.push(fw)
} }
} }