set-global-proxy
Advanced tools
Comparing version 0.1.0 to 0.1.1
@@ -5,2 +5,7 @@ var execSync = require('child_process').execSync; | ||
var PROXY_HELPER = join(__dirname, 'Whistle'); | ||
var SUDO = [ | ||
'sudo chown root:admin "' + PROXY_HELPER + '"', | ||
'sudo chmod a+rx "' + PROXY_HELPER + '"', | ||
'sudo chmod +s "' + PROXY_HELPER + '"' | ||
].join('&&'); | ||
@@ -47,2 +52,3 @@ function getProxyServer(isSecure) { | ||
} | ||
options.sudo && execSync(SUDO); | ||
execSync('\'' + PROXY_HELPER + '\' -m global -p ' + port + ' -r ' + port + ' -s ' + options.host + bypass); | ||
@@ -49,0 +55,0 @@ try { |
{ | ||
"name": "set-global-proxy", | ||
"description": "Set global proxy for PC", | ||
"version": "0.1.0", | ||
"version": "0.1.1", | ||
"author": "avenwu <avenwu@vip.qq.com>", | ||
@@ -6,0 +6,0 @@ "contributors": [], |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
116030
139