]> www.infradead.org Git - users/dwmw2/vpnc-scripts.git/commit
vpnc-script-win: make VPN addresses/gateways "non-persistent", and delete them on...
authorDaniel Lenski <dlenski@gmail.com>
Wed, 31 Mar 2021 23:23:38 +0000 (16:23 -0700)
committerDaniel Lenski <dlenski@gmail.com>
Thu, 1 Apr 2021 01:11:39 +0000 (01:11 +0000)
commit3a11fc7c971a28e375cc1fb2defe9d829aed2a4f
treee3a63aa8881399590e383a2273e7dd9257355b1d
parentaad2751c44eb2cc52ea410d39f13c95cefa6ed7e
vpnc-script-win: make VPN addresses/gateways "non-persistent", and delete them on disconnect

Persisting the state of IPv4 configuration of these interfaces is generally
unhelpful (as with DNS/WINS settings).

Two approaches. We do both:

1. Make the addresses ephemeral ("netsh ... store=active", as opposed to the
   "store=persistent" default). This ensures that the addresses won't last
   past reboot.
2. Delete the addresses upon disconnection.

Signed-off-by: Daniel Lenski <dlenski@gmail.com>
vpnc-script-win.js