6

Sometimes I need to use ShadowsocksX to bypass GFW, but ShadowsocksX will clear my proxy configuration file.

When I come to my company, I've to set proxy configuration file manually, I'm wondering if there any OSX's command can help me to set proxy configuration file? So that I can create an alias in my zshrc file.

7

networksetup is a configuration tool for network settings in System Preferences. event I don't really known what the ShadowsocksX project is, but I decided this command can help up.

PS: if you just need to set the proxy for something like wget, or curl, then you can use the fairly universal 'http_proxy' and 'ftp_proxy' env variables. export http_proxy=http://myproxy:port

  • 4
    Thanks, it's networksetup -setautoproxyurl "Wi-Fi" "http://somedomain.com/proxy.pac" – lit2019 Jan 9 '15 at 9:21

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .