]> www.infradead.org Git - users/dwmw2/vpnc-scripts.git/commitdiff
Remove unnecessary quotes around numeric interface identifier (TUNIDX) in vpnc-script...
authorDaniel Lenski <dlenski@gmail.com>
Sat, 22 Jan 2022 20:54:13 +0000 (12:54 -0800)
committerDaniel Lenski <dlenski@gmail.com>
Sat, 22 Jan 2022 21:51:30 +0000 (13:51 -0800)
Missed these in 6a78d3c703103afacd64c908597aa442e2e96ad5.

Signed-off-by: Daniel Lenski <dlenski@gmail.com>
vpnc-script-win.js

index 415fa54582b2496151dc1cbb260505344b48e1ec..bd18485fdac64a9fc6288bacafeb10b50a590eda 100644 (file)
@@ -97,15 +97,15 @@ case "connect":
 
     if (!env("CISCO_SPLIT_INC") && REDIRECT_GATEWAY_METHOD != 2) {
         // Interface metric must be set to 1 in order to add a route with metric 1 since Windows Vista
-        run("netsh interface ip set interface \"" + env("TUNIDX") + "\" metric=1 store=active");
+        run("netsh interface ip set interface " + env("TUNIDX") + " metric=1 store=active");
     }
 
     if (env("CISCO_SPLIT_INC") || REDIRECT_GATEWAY_METHOD > 0) {
-        run("netsh interface ip set address \"" + env("TUNIDX") + "\" static " +
+        run("netsh interface ip set address " + env("TUNIDX") + " static " +
             env("INTERNAL_IP4_ADDRESS") + " " + internal_ip4_netmask + " store=active");
     } else {
         // The default route will be added automatically
-        run("netsh interface ip set address \"" + env("TUNIDX") + "\" static " +
+        run("netsh interface ip set address " + env("TUNIDX") + " static " +
             env("INTERNAL_IP4_ADDRESS") + " " + internal_ip4_netmask + " " + internal_gw +
             " gwmetric=1 store=active");
     }