set-global-proxy
Advanced tools
Comparing version 0.1.1 to 0.1.2
@@ -5,2 +5,3 @@ export interface ProxyOptions { | ||
bypass?: string; | ||
sudo?: boolean; | ||
} | ||
@@ -7,0 +8,0 @@ |
@@ -51,3 +51,5 @@ var execSync = require('child_process').execSync; | ||
} | ||
options.sudo && execSync(SUDO); | ||
try { | ||
options.sudo && execSync(SUDO); | ||
} catch (e) {} | ||
execSync('\'' + PROXY_HELPER + '\' -m global -p ' + port + ' -r ' + port + ' -s ' + options.host + bypass); | ||
@@ -54,0 +56,0 @@ try { |
{ | ||
"name": "set-global-proxy", | ||
"description": "Set global proxy for PC", | ||
"version": "0.1.1", | ||
"version": "0.1.2", | ||
"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
116075
142