Skip to content

feat: allow a fixed local UDP listen port - #153

Open
SriVishnu230707 wants to merge 1 commit into
tailscale:mainfrom
SriVishnu230707:feat/configurable-listen-port
Open

SriVishnu230707 wants to merge 1 commit into
tailscale:mainfrom
SriVishnu230707:feat/configurable-listen-port

Conversation

@SriVishnu230707

Copy link
Copy Markdown

Closes #143.

Adds a global --listen-port flag for manual UDP port forwarding. It configures the local WireGuard UDP socket for both server and client modes; zero keeps the existing OS-assigned behavior. The library also exposes Server.ListenPort and Client.ListenPort, with validation for 0–65535. README and CLI help explain that this is separate from the service port inside the tunnel.

Validation on Windows: go test ./cmd/tailcat -run "Test(HelpListsCommandTree|GlobalFlagPlacement)$" -count=1 and go test . -run TestListenPortRange -count=1 passed. The broader suite has unrelated Windows environment failures in SSH tests (sh unavailable, SSH key write/access errors).

This branch has not been deployed

No deployments
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 this pull request may close these issues.

Feature request: allow specifying the UDP listen port

1 participant