From b2fc7e61880524b729a4c00541c04206cf6c1c47 Mon Sep 17 00:00:00 2001 From: Antonio Borneo Date: Sat, 14 Jan 2012 07:55:27 +0000 Subject: [PATCH] Only remove IPv6 default route if we had IPv6 Signed-off-by: David Woodhouse git-svn-id: https://svn.unix-ag.uni-kl.de/vpnc/trunk@492 315857ad-0bdb-0310-b42e-dec37551a5f0 --- vpnc-script | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vpnc-script b/vpnc-script index 81456ac..83eec6c 100755 --- a/vpnc-script +++ b/vpnc-script @@ -607,7 +607,7 @@ do_disconnect() { for i in $INTERNAL_IP6_DNS ; do del_ipv6_network_route "$i" "128" done - else + elif [ -n "$INTERNAL_IP6_NETMASK" -o -n "$INTERNAL_IP6_ADDRESS" ]; then reset_ipv6_default_route fi -- 2.11.4.GIT