Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

set-global-proxy

Package Overview
Dependencies
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

set-global-proxy - npm Package Compare versions

Comparing version 0.1.0 to 0.1.1

6

lib/mac/index.js

@@ -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 {

2

package.json
{
"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": [],

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc