Skip to content

Make wstunnel print out actual listening address #524

Description

@alou-S

Describe the feature

  • Make wstunnel print out the actual port that it bound to. This applies mainly when we use something like -L "udp://0:127.0.0.1:51280"
  • Currently it would print out Starting UDP server listening cnx on 127.0.0.1:0 rather than the actual port it bound to.

Describe the reason for such feature

  • Makes it easier for the user to figure out which port it bound to.
  • This is mainly for automation where a specific port may already be used so its better to ask the OS to assign a free one.

Describe alternatives you've considered

  • We may always ask the OS for which port the process bound to using tools like ss or lsof
  • But this often requires higher privileges, wstunnel printing it out would be neater.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions