-
Notifications
You must be signed in to change notification settings - Fork 3.2k
Description
Describe the bug
Disconnect calls "netsh" command to delete IP address from adapter, but it has the flag "store=active" which seems to make it so the IP isn't fully removed. Next time computer is rebooted, the address is taken by the adapter so other adapters are unable to use it. I noticed that there is a comment ""store=active" is needed in Windows 8(.1) to delete the address we added" in the source code, if that is only needed for windows 8(.1), maybe the flag could be removed for newer Windows versions, avoiding this issue?
Line 6338 in 2e2ac94
| argv_printf(&argv, "%s%s interface %s delete address %lu %s store=active", get_win_sys_path(), |
To Reproduce
- Connect to OpenVPN DCO server.
- Disconnect.
The IP is still set for the adapter, but is not visible when "ipconfig /all" command is called

- Restart computer.
- IP cannot be set to other adapters.
Expected behavior
OpenVPN adapter fully cleans up, allows the IP to be used by other adapters.
Version information (please complete the following information):
- OS: Windows 11.
- OpenVPN DCO is used.