sanketbajoria / ssh2-promise

ssh with promise/async await and typescript support
https://www.npmjs.com/package/ssh2-promise
MIT License
148 stars 24 forks source link

error when a tunnel connection fails #7

Closed Slavrix closed 6 years ago

Slavrix commented 6 years ago

When a tunnel errors, an error is thrown that the name cant be found.

line 352 of sshConnections looks like its the culprit.

name should be changed to tunnelConfig.name

sanketbajoria commented 6 years ago

Thanks for pointing it out. Will be releasing fix soon.

sanketbajoria commented 6 years ago

Fixed. https://github.com/sanketbajoria/ssh2-promise/commit/f6c9f7f708ec329d2a313e8d90ca65b3beeb4cad