Skip to content

Latest commit

 

History

History
21 lines (15 loc) · 587 Bytes

README.md

File metadata and controls

21 lines (15 loc) · 587 Bytes

socks

socks is a simple Go library to toggle on and off socks for Mac OS X. It will extract a helper tool and use it to actually chage socks setting.

socks.EnsureHelperToolPresent(fullPath, prompt, iconFullPath)
socks.On(SocksIP,SocksPort string)
socks.Off()

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

Embedding socks-cmd

pac uses binaries from the socks-cmd project.

Thanks lantern project

pac-cmd pac