From 0a80635365dadc81991badbe7de78b327c83a883 Mon Sep 17 00:00:00 2001 From: Tian Feng Date: Fri, 20 Oct 2023 10:43:46 -0700 Subject: [PATCH] quote --- src/network.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/network.ts b/src/network.ts index 78a0044a..547c2c13 100644 --- a/src/network.ts +++ b/src/network.ts @@ -51,9 +51,9 @@ function setupMacProxy(proxy: any) { shell.exec(`sudo ${networkSetup} -setwebproxy "${networkService}" ${proxyHost} ${proxyPort}`, {async: false}); shell.exec(`sudo ${networkSetup} -setsecurewebproxy "${networkService}" ${proxyHost} ${proxyPort}`, {async: false}); shell.exec(`sudo ${networkSetup} -setftpproxy "${networkService}" ${proxyHost} ${proxyPort}`, {async: false}); - const webProxyInfo = shell.exec(`sudo ${networkSetup} -getwebproxy ${networkService}`, {async: false}).stdout; + const webProxyInfo = shell.exec(`sudo ${networkSetup} -getwebproxy "${networkService}"`, {async: false}).stdout; console.log('webProxyInfo: ', webProxyInfo) - const webSecureProxyInfo = shell.exec(`sudo ${networkSetup} -getsecurewebproxy ${networkService}`, {async: false}).stdout; + const webSecureProxyInfo = shell.exec(`sudo ${networkSetup} -getsecurewebproxy "${networkService}"`, {async: false}).stdout; console.log('webSecureProxyInfo: ', webSecureProxyInfo) }