Last active
March 30, 2022 09:10
-
-
Save yurenchen000/c8474092792d040c777333bf70347810 to your computer and use it in GitHub Desktop.
go get xxx with proxy
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
all_proxy
seems not work,http_proxy
+https_proxy
works