Skip to content

Instantly share code, notes, and snippets.

@congjf
Last active December 31, 2015 12:39
Show Gist options
  • Save congjf/7987202 to your computer and use it in GitHub Desktop.
Save congjf/7987202 to your computer and use it in GitHub Desktop.
Auto switch proxy on Safari on OS X
Auto switch proxy on Safari on OS X.
When we start the proxy server, goagent is already handle a PAC file service for us.
What we shuod do is just look the content on our console. It is may like:
------------------------------------------------------
GoAgent Version : 3.1.2 (python/2.7.5 pyopenssl/0.13)
Listen Address : 127.0.0.1:8087
GAE Mode : https
GAE Profile : ipv4
GAE APPID : XXXXXXXXXXXX
Pac Server : http://127.0.0.1:8086/proxy.pac
Pac File : file:///xxxxxxxxxx/local/proxy.pac
------------------------------------------------------
Look at the "Pac Server" field, it is the PAC file service on your server.
And add the url of "Pac Server" to your "System Preference" - "Network" - "Proxy".
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment