Go 拉取第三方包报错go: github.com/denisenkom/go-mssqldb@v0.12.0: Get "https://proxy.golang.org/github.com/denisenkom/go-mssqldb/@v/v0.12.0.mod": dial tcp 172.217.24.17:443: connectex: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond.使用 Go 安装 go-mssqldb 时报错，看提示是网络超时；问题主要是因为国内访问国外数据被禁，常常出现于首次安装 Go 时，配置代理加速服务即可。问题复现termux 下编译 fscan 安全测试工具报以上错误git clone https://github.com/shadow1ng/fscan.git cd fscan go mod tidy go build main.go解决问题查看环境go env关闭 GOSUMDB以关闭校验包安全证书go env -w GOSUMDB=off使用代理加速访问go env -w GOPROXY=https://goproxy.cn,direct重新编译拉取go build贴个配置完成的信息我是在 termux 下编译的 fscan 出现报错, 以下信息是解决之后的GO111MODULE="" GOARCH="arm64" GOBIN="" GOCACHE="/data/data/com.termux/files/home/.cache/go-build" GOENV="/data/data/com.termux/files/home/.config/go/env" GOEXE="" GOEXPERIMENT="" GOFLAGS="" GOHOSTARCH="arm64" GOHOSTOS="android" GOINSECURE="" GOMODCACHE="/data/data/com.termux/files/home/go/pkg/mod" GONOPROXY="" GONOSUMDB="" GOOS="android" GOPATH="/data/data/com.termux/files/home/go" GOPRIVATE="" GOPROXY="https://goproxy.cn,direct" GOROOT="/data/data/com.termux/files/usr/lib/go" GOSUMDB="off" GOTMPDIR="" GOTOOLDIR="/data/data/com.termux/files/usr/lib/go/pkg/tool/android_arm64" GOVCS="" GOVERSION="go1.19.1" GCCGO="gccgo" AR="ar" CC="aarch64-linux-android-clang" CXX="aarch64-linux-android-clang++" CGO_ENABLED="1" GOMOD="/data/data/com.termux/files/home/hack/fscan/fscan/go.mod" GOWORK="" CGO_CFLAGS="-g -O2" CGO_CPPFLAGS="" CGO_CXXFLAGS="-g -O2" CGO_FFLAGS="-g -O2" CGO_LDFLAGS="-g -O2" PKG_CONFIG="pkg-config" GOGCCFLAGS="-fPIC -pthread -fno-caret-diagnostics -Qunused-arguments -Wl,--no-gc-sections -fmessage-length=0 -fdebug-prefix-map=/data/data/com.termux/files/usr/tmp/go-build3076390292=/tmp/go-build -gno-record-gcc-switches" 附：Go 常用网站https://hao.studygolang.comhttps://docs.studygolang.com/doc/tutorial/getting-started参考文献：https://goproxy.io/zh/docs/GOSUMDB-env.html