Pretty self explanatory. The script erroneously uses the CISCO_SPLIT_INC_[i] environment variables when setting the IPv6 split routing settings. This patch fixes the issue. Signed-off-by: Kyle Johnson <KyleJ61782 at gmail.com> --- vpnc-script-win.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) mode change 100644 => 100755 vpnc-script-win.js diff --git a/vpnc-script-win.js b/vpnc-script-win.js old mode 100644 new mode 100755 index a3a0974..ad7943b --- a/vpnc-script-win.js +++ b/vpnc-script-win.js @@ -172,7 +172,7 @@ case "connect": if (env("CISCO_IPV6_SPLIT_INC")) { for (var i = 0 ; i < parseInt(env("CISCO_IPV6_SPLIT_INC")); i++) { var network = env("CISCO_IPV6_SPLIT_INC_" + i + "_ADDR"); - var netmasklen = env("CISCO_SPLIT_INC_" + i + + var netmasklen = env("CISCO_IPV6_SPLIT_INC_" + i + "_MASKLEN"); run("netsh interface ipv6 add route " + network + "/" + netmasklen + " \"" + env("TUNDEV") + "\" fe80::8 store=active") -- 2.18.0