🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
Socket

github.com/igoogolx/sysproxy

Package Overview
Dependencies
Alerts
File Explorer
Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

github.com/igoogolx/sysproxy

v1.0.5
Source
Go
Version published
Created
Source

sysproxy

sysproxy is a simple Go library to toggle the system proxy on and off for Windows and MacOS. It will extract a helper tool and use it to actually change the system proxy settings.

sysproxy.EnsureHelperToolPresent(fullPath, prompt, iconFullPath)
sysproxy.On(proxyAddr string)
sysproxy.Off()

See 'example/main.go' for detailed usage.

Embedding sysproxy-cmd

sysproxy uses binaries from the sysproxy-cmd project and from sysproxy-cmd-darwin.

To embed the binaries for different platforms, use the sysproxy2go.sh script. This script takes care of code signing the Windows and MacOS executables.

This script signs the Windows executable, which requires that osslsigncode utility be installed. On OS X with homebrew, you can do this with brew install osslsigncode.

You will also need to set the environment variables BNS_CERT and BNS_CERT_PASS to point to bns-cert.p12 and its password so that the script can sign the Windows executable.

This script also signs the MacOS executable, which requires you to install a MacOS signing certificate.

FAQs

Package last updated on 19 Dec 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts