From d3e262d474a4bbdaad2e3de17488c6588af82ede Mon Sep 17 00:00:00 2001 From: Darien Raymond Date: Tue, 23 May 2017 00:48:27 +0200 Subject: [PATCH] remove unnecessary config --- tools/build/go.go | 7 ++++++- tools/release/config/vpoint_vmess_freedom.json | 6 ------ 2 files changed, 6 insertions(+), 7 deletions(-) diff --git a/tools/build/go.go b/tools/build/go.go index e4dc30d2..6c55246e 100644 --- a/tools/build/go.go +++ b/tools/build/go.go @@ -13,9 +13,14 @@ func buildV2Ray(targetFile string, version string, goOS GoOS, goArch GoArch, ext if version != "custom" { year, month, day := time.Now().UTC().Date() today := fmt.Sprintf("%04d%02d%02d", year, int(month), day) + ldFlags = ldFlags + " -X v2ray.com/core.version=" + version + " -X v2ray.com/core.build=" + today + bUser := os.Getenv("V_USER") - ldFlags = ldFlags + " -X v2ray.com/core.version=" + version + " -X v2ray.com/core.build=" + today + " -X v2ray.core/core/tools/conf.bUser=" + bUser + if len(bUser) > 0 { + ldFlags += " -X v2ray.com/ext/tools/conf.bUser=" + bUser + } } + cmd := exec.Command( "go", "build", "-tags", "json", diff --git a/tools/release/config/vpoint_vmess_freedom.json b/tools/release/config/vpoint_vmess_freedom.json index 90ce0a04..856b3d01 100644 --- a/tools/release/config/vpoint_vmess_freedom.json +++ b/tools/release/config/vpoint_vmess_freedom.json @@ -55,11 +55,5 @@ } ] } - }, - "transport": { - "kcpSettings": { - "uplinkCapacity": 2, - "downlinkCapacity": 10 - } } }