From: Daniel Lenski Date: Sat, 5 Sep 2020 19:05:13 +0000 (-0700) Subject: Windows IPv6: remove hard-coded next-hop of fe80::8 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=3ab02566f995713f3885e34a20e0069c75aca3b9;p=users%2Fdwmw2%2Fvpnc-scripts.git Windows IPv6: remove hard-coded next-hop of fe80::8 Closes #6. This was added in 3d2c68280b591322021f157e1533473356f1e3ef, which originally added Windows IPv6 support. --- diff --git a/vpnc-script-win.js b/vpnc-script-win.js index 99946a8..ab81145 100644 --- a/vpnc-script-win.js +++ b/vpnc-script-win.js @@ -167,7 +167,7 @@ case "connect": echo("Configuring IPv6 networks:"); if (env("INTERNAL_IP6_NETMASK") && !env("INTERNAL_IP6_NETMASK").match("/128$")) { run("netsh interface ipv6 add route " + env("INTERNAL_IP6_NETMASK") + - " \"" + env("TUNDEV") + "\" fe80::8 store=active") + " \"" + env("TUNDEV") + "\" store=active") } if (env("CISCO_IPV6_SPLIT_INC")) { @@ -176,12 +176,12 @@ case "connect": var netmasklen = env("CISCO_SPLIT_INC_" + i + "_MASKLEN"); run("netsh interface ipv6 add route " + network + "/" + - netmasklen + " \"" + env("TUNDEV") + "\" fe80::8 store=active") + netmasklen + " \"" + env("TUNDEV") + "\" store=active") } } else { echo("Setting default IPv6 route through VPN."); run("netsh interface ipv6 add route 2000::/3 \"" + env("TUNDEV") + - "\" fe80::8 store=active"); + "\" store=active"); } echo("IPv6 route configuration done."); }