Skip to content

[Feature request] support reject with message #1222

@zWingz

Description

@zWingz

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions