]> www.infradead.org Git - users/dwmw2/vpnc-scripts.git/commit
Better ordering, more logging, and disconnect handler fixes on Windows
authorDaniel Lenski <dlenski@gmail.com>
Sat, 22 Jan 2022 20:58:55 +0000 (12:58 -0800)
committerDaniel Lenski <dlenski@gmail.com>
Mon, 24 Jan 2022 01:39:45 +0000 (17:39 -0800)
commitbeb122162bf1cede0c065641d07a6b89389a7c75
treebe72e36bb3b7be251de26b8d9860a91fae66d383
parentc79e5a66dacdcdc950c296c87ee325b4fae78367
Better ordering, more logging, and disconnect handler fixes on Windows

Set up the explicit route to the VPN gateway before configuring *anything else*,
and include default/Internet-facing gateway in the logging output.

Fixed a couple issues in the 'disconnect' handler.  We missed these until
now because the 'disconnect' handler was *never being run on Windows* due to
https://gitlab.com/openconnect/openconnect/-/issues/362, until this was
fixed in https://gitlab.com/openconnect/openconnect/-/merge_requests/323

1. Need to specify 'store=active' when deleting an IPv6 address on disconnect
   (missed this in 3a11fc7c971a28e375cc1fb2defe9d829aed2a4f)
2. Put some logging on the 'disconnect' handler.

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