Skip to content

Disconnecting from OpenVPN DCO server does not fully release the IP address. #915

@mantaspau98

Description

@mantaspau98

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?

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
Image

  • 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.

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions