Skip to content

Instantly share code, notes, and snippets.

@yurenchen000
Last active March 30, 2022 09:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save yurenchen000/c8474092792d040c777333bf70347810 to your computer and use it in GitHub Desktop.
Save yurenchen000/c8474092792d040c777333bf70347810 to your computer and use it in GitHub Desktop.
go get xxx with proxy
# http*_proxy
export http_proxy=socks5://proxyAddress:port
export https_proxy=socks5://proxyAddress:port
# OR all_proxy
export all_proxy=socks5://proxyAddress:port
# ----------------
# test go get
all_proxy=socks5://localhost:1080 go get -v -u -fix golang.org/x/net/proxy
# test curl
all_proxy=socks5://localhost:1080 curl -v https://go.googlesource.com/
# ref: https://shockerli.net/post/go-get-golang-org-x-solution/
@yurenchen000
Copy link
Author

  • all_proxy seems not work,
  • http_proxy + https_proxy works

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