From 8bef3230f19449296a9a0990bbf7889d36721b99 Mon Sep 17 00:00:00 2001 From: Daniel Lenski Date: Sat, 22 Jan 2022 12:54:13 -0800 Subject: [PATCH] Remove unnecessary quotes around numeric interface identifier (TUNIDX) in vpnc-script-win.js Missed these in 6a78d3c703103afacd64c908597aa442e2e96ad5. Signed-off-by: Daniel Lenski --- vpnc-script-win.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/vpnc-script-win.js b/vpnc-script-win.js index 415fa54..bd18485 100644 --- a/vpnc-script-win.js +++ b/vpnc-script-win.js @@ -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"); } -- 2.49.0