小调整
parent
61ad6cbf87
commit
366540877c
|
@ -306,13 +306,13 @@ const executor = {
|
||||||
await exec(`networksetup -setwebproxystate '${wifiAdaptor}' off`)
|
await exec(`networksetup -setwebproxystate '${wifiAdaptor}' off`)
|
||||||
}
|
}
|
||||||
|
|
||||||
// const setEnv = `cat <<ENDOF >> ~/.zshrc
|
// const setEnv = `cat <<ENDOF >> ~/.zshrc
|
||||||
// export http_proxy="http://${ip}:${port}"
|
// export http_proxy="http://${ip}:${port}"
|
||||||
// export https_proxy="http://${ip}:${port}"
|
// export https_proxy="http://${ip}:${port}"
|
||||||
// ENDOF
|
// ENDOF
|
||||||
// source ~/.zshrc
|
// source ~/.zshrc
|
||||||
// `
|
// `
|
||||||
// await exec(setEnv)
|
// await exec(setEnv)
|
||||||
} else { // 关闭代理
|
} else { // 关闭代理
|
||||||
// https
|
// https
|
||||||
await exec(`networksetup -setsecurewebproxystate '${wifiAdaptor}' off`)
|
await exec(`networksetup -setsecurewebproxystate '${wifiAdaptor}' off`)
|
||||||
|
|
Loading…
Reference in New Issue