On Tue, Jun 13, 2017 at 3:25 PM, Gert Doering <g...@greenie.muc.de> wrote:
> > I haven't tested this, but if both connections use the same adapter, this
> > looks possible as you kill the first process without giving it a chance
> to
> > remove the IP first. Addresses are added with store=active so would
> > disappear on reboot as you saw.
>
> Right. If you a) run as admin, and b) force-kill openvpn (which "close
> the command window" might do), yes, there is no way to clean up.
>
> In that case, it's just plain PEBKAC :-)
Right :) But we could probably do better using Set instead of Add while
the address is set using the service. I'm not that familiar with ipapi, but
looks like SetUnicastIpAddressEnrty instead of AddUnicastIpAddressEntry
may be the right thing.
The netsh command used when service is not in use does correctly do a set
not add.
Selva
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Openvpn-devel mailing list
Openvpn-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/openvpn-devel