Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

LibCyber/node-sysproxy

Open more actions menu

Repository files navigation

Node Sysproxy

Build

A tool to setup system proxy in a more native way.

Usage

Install dependency

npm install --save sysproxy

Use in Javascript codes

const sysproxy = require('sysproxy');

console.log("Current proxy info:", sysproxy.queryProxy());
console.log("Set proxy result:", sysproxy.setProxy({
  autoProxyDiscovery: false,
  autoProxyConfig: false,
  autoProxyConfigUrl: '',
  manualProxy: true,
  proxyServer: '127.0.0.1:8890',
  bypassList: 'localhost,127.0.0.0/8;10.0.0.0/8;172.16.0.0/16;172.17.0.0/16;172.18.0.0/16;172.19.0.0/16;172.20.0.0/16;192.168.0.0/16'
}))
console.log("Current proxy info:", sysproxy.queryProxy());
console.log("Reset proxy result:", sysproxy.setProxy({
  autoProxyDiscovery: false,
  autoProxyConfig: false,
  autoProxyConfigUrl: '',
  manualProxy: false,
  proxyServer: '',
  bypassList: ''
}))

About

A tool to setup system proxy in a more native way.

Resources

License

Stars

0 stars

Watchers

0 watching

Forks

Packages

 
 
 

Contributors

Morty Proxy This is a proxified and sanitized view of the page, visit original site.