Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature request] support reject with message #1222

Open
zWingz opened this issue Oct 10, 2022 · 0 comments · May be fixed by #1223
Open

[Feature request] support reject with message #1222

zWingz opened this issue Oct 10, 2022 · 0 comments · May be fixed by #1223

Comments

@zWingz
Copy link

zWingz commented Oct 10, 2022

When I set up an ssh tunnel and access a non-existent port, I will receive an error with Connection refused

image

But I can't throw this message by ssh2.

image

connection.on('tcpip', (accept, reject) => {
  reject('some message')
})

maybe it can be fixed in https://github.com/mscdex/ssh2/blob/master/lib/server.js#L548-L562
image

@zWingz zWingz linked a pull request Oct 10, 2022 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant