Skip to content

Conversation

@JuenTingShie
Copy link

On Windows, the default VPN port (2222) somehow will been used by PID 4 (also known as System) randomly, that cannot be detected that is been using by command $(ss -tan4H "sport = $port").

When 2222 port is been using and not detected by ss, original strategy will keep using 2222 port, causing unable to start vpn.

This PR implements a change to use random port selection instead default VPN port, or PORT+=1

Note:
This update improves the handling of port conflicts, though further work may be needed to fully resolve situations where ports remain undetectable.

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.

2 participants