deduplicate set_vpngateway_route
Removes the unnecessary redundancy between set_vpngateway_route and set_vpngateway_route_attempt_reconnect, in favor of the latter.
While the Linux/iproute2 implementation of set_vpngateway_route_attempt_reconnect implementation is a bit more complex, it has some advantages:
- Tries harder to find a non-looped-back route for the VPN gateway
- Using
ip route showcaptures some Linux kernel routing flags thatip route getapparently doesn't, including theonlinkflag, which needs to be preserved to fix #20 (closed)
I've been using this updated version for several days, on multiple Linux/iproute2 systems, without any issues.
Edited by Daniel Lenski