Skip to content

Repository files navigation

sysproxy

Go library and CLI tool for setting system proxy. Supports Windows and macOS.

Import as a library

example.go

package main
import"github.com/lixvbnet/sysproxy"funcmain() {
proxy:=sysproxy.New()
proxy.Show()
host, port:="127.0.0.1", 8080proxy.On(host, port)
//proxy.Off(host, port)proxy.Show()
}

CLI tool

  • Install
go install github.com/lixvbnet/sysproxy/cmd/sysproxy@latest

or download pre-compiled binaries from Releases page.

  • Usage
sysproxy show
sysproxy on <host><port>
sysproxy off <host><port>

Run sysproxy -h for more information.

About

Go library and CLI tool for setting system proxy. Supports Windows and macOS.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages