mirror of
https://github.com/alibaba/anyproxy.git
synced 2025-07-29 09:27:42 +00:00
disable global proxy when user exit anyproxy by pressing ctrl/cmd + c
This commit is contained in:
@@ -76,11 +76,11 @@ unixLikeSysProxyManager.disableGlobalProxy = function() {
|
||||
var result = execSync(
|
||||
|
||||
// disable http proxy
|
||||
'networksetup -setwebproxystate ${networkType} off; '
|
||||
'sudo networksetup -setwebproxystate ${networkType} off; '
|
||||
.replace(/\$\{networkType\}/g, networkType) +
|
||||
|
||||
// disable https proxy
|
||||
'networksetup -setsecurewebproxystate ${networkType} off'
|
||||
'sudo networksetup -setsecurewebproxystate ${networkType} off'
|
||||
.replace(/\$\{networkType\}/g, networkType));
|
||||
|
||||
return result;
|
||||
|
Reference in New Issue
Block a user