Skip to content

fix: show helpful hint on WireGuard port conflicts#8098

Open
lweyrich1 wants to merge 1 commit intomitmproxy:mainfrom
lweyrich1:fix/wireguard-port-conflict-message
Open

fix: show helpful hint on WireGuard port conflicts#8098
lweyrich1 wants to merge 1 commit intomitmproxy:mainfrom
lweyrich1:fix/wireguard-port-conflict-message

Conversation

@lweyrich1
Copy link
Copy Markdown

Closes #7650

Problem

WireGuard mode can fail to start with an "address already in use" error, but the message lacks the usual hint suggesting to pick a different port.

Solution

Extend the listener startup error handling so that WireGuard port-conflict exceptions (including non-OSError exceptions from the Rust backend) get wrapped into an OSError with the same helpful hint text used in other modes.

Testing

Added a regression test for the WireGuard port-conflict case.

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.

Better error message for WireGuard port conflict

1 participant