From: Daniel Lenski Date: Wed, 14 Jul 2021 18:51:19 +0000 (-0700) Subject: Fix set_vpngateway_route X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=78a0505a314f33439ed45c03112d197b218ef4c4;p=users%2Fdwmw2%2Fvpnc-scripts.git Fix set_vpngateway_route Should fix #23 Signed-off-by: Daniel Lenski --- diff --git a/vpnc-script b/vpnc-script index ea609d9..6b6ae7b 100755 --- a/vpnc-script +++ b/vpnc-script @@ -265,7 +265,7 @@ if [ -n "$IPROUTE" ]; then set_vpngateway_route() { # We'll attempt to add a host route to the gateway through every route that matches # its address (excluding those through TUNDEV because the goal is to avoid loopback). - echo "$1" | grep -q : && FAMILY=-6 || FAMILY=-4 + echo "$VPNGATEWAY" | grep -q : && FAMILY=-6 || FAMILY=-4 list_non_loopback_routes "$VPNGATEWAY" | while read LINE ; do