MCPcopy Index your code
hub / github.com/getlantern/sysproxy

github.com/getlantern/sysproxy @main

Chat with this repo
repository ↗ · DeepWiki ↗ · + Follow
23 symbols 61 edges 9 files 3 documented · 13% 1 cross-repo links
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

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.

Core symbols most depended-on inside this repo

Shape

Function 22
Struct 1

Languages

Go100%

Modules by API surface

sysproxy.go8 symbols
sysproxy_windows_amd64.go2 symbols
sysproxy_windows_386.go2 symbols
sysproxy_test.go2 symbols
sysproxy_linux_arm64.go2 symbols
sysproxy_linux_amd64.go2 symbols
sysproxy_linux_386.go2 symbols
sysproxy_darwin.go2 symbols
example/example.go1 symbols

Used by 1 indexed graphs manifest dependencies, hub-wide

For agents

$ claude mcp add sysproxy \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact

Ask about this repo answers extend the page