]> www.infradead.org Git - users/dwmw2/vpnc-scripts.git/commit
make do_attempt_reconnect work with route/ifconfig
authorDaniel Lenski <dlenski@gmail.com>
Fri, 25 Sep 2020 00:16:00 +0000 (17:16 -0700)
committerDaniel Lenski <dlenski@gmail.com>
Tue, 10 Nov 2020 22:57:01 +0000 (14:57 -0800)
commitecf656700c283267912a7c073bb75e8100064316
tree54441fec196d4f73ccc1e80e3f51c9d7f0cb9bd2
parent7526802233c74651c3a42cb87b8b160352f55e00
make do_attempt_reconnect work with route/ifconfig

Unlike with iproute2, there is no way to determine which interface(s)
have routes that actually match the VPN gateway, so we simply try
finding a default-route gateway, as upon initial connection.

For this to work properly, we need to ensure that get_default_gw excludes
TUNDEV (since the goal is to prevent loopback), and only uses the first
match.

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