openwrt编译问题:frp编译失败 https://proxy.golang.org *** connect: connection refused

go: downloading github.com/armon/go-socks5 v0.0.0-20160902184237-e75332964ef5
github.com/Azure/go-ntlmssp@v0.0.0-20200615164410-66371956d46c: Get "https://proxy.golang.org/github.com/%21azure/go-ntlmssp/@v/v0.0.0-20200615164410-66371956d46c.mod": dial tcp 142.251.43.17:443: 
connect: connection refused
 
Building targets
no Go files in /home/hann/LubanCatWrt/build_dir/target-aarch64_generic_musl/frp-0.45.0/.go_work/build

Makefile:69: recipe for target '/home/hann/LubanCatWrt/build_dir/target-aarch64_generic_musl/frp-0.45.0/.built' failed
make[3]: *** [/home/hann/LubanCatWrt/build_dir/target-aarch64_generic_musl/frp-0.45.0/.built] Error 1
make[3]: Leaving directory '/home/hann/LubanCatWrt/feeds/packages/net/frp'
time: package/feeds/packages/frp/compile#0.63#0.74#403.55
    ERROR: package/feeds/packages/frp failed to build.

如上提示:
https://proxy.golang.org/github.com/* /go-ntlmssp*
这个网址是进不去的。
需要使用国内代理站点
这个是在编译frp-0.45.0的时候发生的;

网上搜,会告诉你这么干,包括https://goproxy.cn/的提示也是

$ export GO111MODULE=on
$ export GOPROXY=https://goproxy.cn

这个帖子告诉我,export不能放到终端中执行,需要在Makefile中
在frp的Makefile中进行修改,位置如下

/home/hann/LubanCatWrt/feeds/packages/net/frp

修改内容参考https://goproxy.cn的 两个export

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值