mirror of
https://github.com/v2fly/v2ray-core.git
synced 2025-01-02 15:36:41 -05:00
remove unnecessary config
This commit is contained in:
parent
9c43471891
commit
d3e262d474
@ -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",
|
||||
|
@ -55,11 +55,5 @@
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"transport": {
|
||||
"kcpSettings": {
|
||||
"uplinkCapacity": 2,
|
||||
"downlinkCapacity": 10
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user