Skip to content

Improve support for localhost whitelisting #1652

Description

@ananthakumaran

What problem are you trying to solve?

Currently, it's not possible (or easy) to whitelist ports on localhost. The only way available is to whitelist ports one by one. It's not possible to whitelist all ports on localhost (0 only works on macOS, not on Linux). In many cases (usually tests), a process listens on a random free port and then allows the client to connect to it. Another way to think about this is to allow a child process to listen on any port and allow communication with those ports, but this is also not possible today.

What would you like to see?

  • Port range support
  • 0 works reliably on macOS and Linux
  • A child process is allowed to connect to ports on which it listens

What have you tried instead?

No response

How is this blocking you?

None

Additional context

No response

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

    enhancementNew feature or requesttriageNewly opened, not yet reviewed or assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions