From 0939a8260119fe094c823b4e28af6af65e6b76fb Mon Sep 17 00:00:00 2001 From: CN_SZTL Date: Sat, 17 Oct 2020 20:20:49 +0800 Subject: [PATCH] v2ray: disable goproxy by default --- package/ctcgfw/openwrt-v2ray-plugin/Makefile | 5 +++-- package/lean/v2ray/Config.in | 2 +- package/lean/v2ray/Makefile | 3 ++- package/lienol/trojan-go/Makefile | 3 ++- 4 files changed, 8 insertions(+), 5 deletions(-) diff --git a/package/ctcgfw/openwrt-v2ray-plugin/Makefile b/package/ctcgfw/openwrt-v2ray-plugin/Makefile index 474327b660..ea1c470360 100644 --- a/package/ctcgfw/openwrt-v2ray-plugin/Makefile +++ b/package/ctcgfw/openwrt-v2ray-plugin/Makefile @@ -35,13 +35,14 @@ include $(TOPDIR)/feeds/packages/lang/golang/golang-package.mk define Package/$(PKG_NAME)/config config $(PKG_NAME)_INCLUDE_GOPROXY bool "Compiling with GOPROXY proxy" - default y + default n endef ifeq ($(CONFIG_$(PKG_NAME)_INCLUDE_GOPROXY),y) export GO111MODULE=on -export GOPROXY=https://goproxy.io +export GOPROXY=https://goproxy.cn +#export GOPROXY=https://goproxy.io #export GOPROXY=https://mirrors.aliyun.com/goproxy/ endif diff --git a/package/lean/v2ray/Config.in b/package/lean/v2ray/Config.in index 3f13ba2057..60700ede5b 100644 --- a/package/lean/v2ray/Config.in +++ b/package/lean/v2ray/Config.in @@ -3,7 +3,7 @@ menu "V2Ray Configuration" config V2RAY_COMPRESS_GOPROXY bool "Compiling with GOPROXY proxy" - default y + default n choice prompt "JSON Config Support" diff --git a/package/lean/v2ray/Makefile b/package/lean/v2ray/Makefile index 876ebbee47..b7fae15199 100644 --- a/package/lean/v2ray/Makefile +++ b/package/lean/v2ray/Makefile @@ -88,7 +88,8 @@ endef ifeq ($(CONFIG_V2RAY_COMPRESS_GOPROXY),y) export GO111MODULE=on -export GOPROXY=https://goproxy.io +export GOPROXY=https://goproxy.cn +#export GOPROXY=https://goproxy.io #export GOPROXY=https://mirrors.aliyun.com/goproxy/ endif diff --git a/package/lienol/trojan-go/Makefile b/package/lienol/trojan-go/Makefile index 7dc033d953..5917ef0fe3 100644 --- a/package/lienol/trojan-go/Makefile +++ b/package/lienol/trojan-go/Makefile @@ -60,7 +60,8 @@ endef ifeq ($(CONFIG_TROJAN_GO_COMPRESS_GOPROXY),y) export GO111MODULE=on -export GOPROXY=https://goproxy.io +GOPROXY=https://goproxy.cn +#export GOPROXY=https://goproxy.io #export GOPROXY=https://mirrors.aliyun.com/goproxy/ endif