[PATCH] Windows VPN connection script doesn't properly set IPv6 split routing

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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



[Index of Archives]     [Linux Samsung SoC]     [Linux Rockchip SoC]     [Linux Actions SoC]     [Linux for Synopsys ARC Processors]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]


  Powered by Linux