From 366540877c1cda63aa553f2e95e23aecf7b5db7b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E8=89=AF?= <841369634@qq.com> Date: Mon, 30 Sep 2024 11:00:56 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B0=8F=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/core/src/shell/scripts/set-system-proxy/index.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/core/src/shell/scripts/set-system-proxy/index.js b/packages/core/src/shell/scripts/set-system-proxy/index.js index c24bd18..9751d86 100644 --- a/packages/core/src/shell/scripts/set-system-proxy/index.js +++ b/packages/core/src/shell/scripts/set-system-proxy/index.js @@ -306,13 +306,13 @@ const executor = { await exec(`networksetup -setwebproxystate '${wifiAdaptor}' off`) } - // const setEnv = `cat <> ~/.zshrc + // const setEnv = `cat <> ~/.zshrc // export http_proxy="http://${ip}:${port}" // export https_proxy="http://${ip}:${port}" // ENDOF // source ~/.zshrc - // ` - // await exec(setEnv) + // ` + // await exec(setEnv) } else { // 关闭代理 // https await exec(`networksetup -setsecurewebproxystate '${wifiAdaptor}' off`)