]> www.infradead.org Git - users/dwmw2/vpnc-scripts.git/commit
always exclude TUNDEV when finding/setting gateway route
authorDaniel Lenski <dlenski@gmail.com>
Thu, 1 Apr 2021 15:43:12 +0000 (08:43 -0700)
committerDaniel Lenski <dlenski@gmail.com>
Tue, 6 Apr 2021 22:12:00 +0000 (15:12 -0700)
commit903800842faf060961920cab66c428ab27845d18
tree07f6f35d103d9424d2e7b7c0e4c1377f9fbfc71a
parentb6b1445a043e68bc065fb19fedd8437ed71db5f4
always exclude TUNDEV when finding/setting gateway route

The previous commit didn't fix #20, because 'ip route get' doesn't preserve the onlink flag.
(See https://gitlab.com/openconnect/vpnc-scripts/-/issues/20#note_542783676)

We should just use the 'ip route show' version across-the-board; it's more complex, but appears
to be quite robus. If we have to use it to get the gateway route correctly, then we simply
remove the redundancy in the code. *BSD code ('route'-based) can be similarly simplified.

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