Code Monkey home page Code Monkey logo

sysproxy-cmd's Introduction

sysproxy-cmd

A command line tool to change HTTP(s) proxy settings of the operating system.

Binaries included in repo. Simply make to build it again, with the important exception of darwin, which uses its own repository and build at https://github.com/getlantern/sysproxy-cmd-darwin.

Note - you will need to run make separately on each platform.

Usage

sysproxy show
sysproxy on  <proxy host> <proxy port>
sysproxy off <proxy host> <proxy port>
sysproxy wait-and-cleanup <proxy host> <proxy port>

sysproxy off and sysproxy wait-and-cleanup turns off proxy setting only if the existing host and port equal .

sysproxy wait-and-cleanup differs from sysproxy off in that it waits for input from stdin (or close) before turning off proxy setting. Any signal or Windows system shutdown message triggers the cleanup too.

Notes

  • Mac

Setting the system proxy is a privileged action on Mac OS. sudo or elevate it as below.

There's an additional option to chown itself to root:wheel and add setuid bit.

sysproxy setuid
  • Windows

Install MinGW-W64 to build sysproxy as it has up to date SDK headers we require. The make command is mingw32-make.

To avoid bringing up console window, it doesn't show anything directly to console. Piping the result to other utilities should work.

sysproxy show | cat
  • Linux

sudo apt-get install libgtk2.0-dev

sysproxy-cmd's People

Contributors

joesis avatar myleshorton avatar oxtoacart avatar robin2003 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.