Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save sunbuhui/8f5b2af4f5a7fa82d3c8a7a7828691dc to your computer and use it in GitHub Desktop.
Save sunbuhui/8f5b2af4f5a7fa82d3c8a7a7828691dc to your computer and use it in GitHub Desktop.
How to set http or https proxy to use shadowsocks in mac
ShadowsocksX-NG现在已经支持一键开启http代理了,只需要在mac的terminal里设置一下就好。
export http_proxy='127.0.0.1:1087'
export https_proxy='127.0.0.1:1087'
@sunbuhui
Copy link
Author

export ALL_PROXY=socks5://127.0.0.1:portnumber

@sunbuhui
Copy link
Author

If you want to unset these proxys,use below three commands.
unset http_proxy
unset https_proxy
unset ALL_PROXY

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment