Skip to content

[feature-request] Add support for nodejs net.blockList object in ssh2.Server #1477

Description

@niki-m

Hi

Please can you add support for the net.blockList object (added in Node 15) in the server configuration options to block unwanted connections?

I'm currently using the following code to achieve this on client connections, but it would be more efficient to pass it on to Node's server object.

if (blockList.check(connectionInfo.ip)) {
  client._sock.resetAndDestroy();
  return;
}

Niki

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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