1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2026-05-27 22:39:09 -04:00

Revert "enable readv reader on windows"

This reverts commit 4bd1ef0650.
This commit is contained in:
Darien Raymond
2018-08-25 16:07:51 +02:00
parent 7bc45eb8aa
commit 8899f985ce

View File

@@ -142,7 +142,7 @@ func init() {
value := platform.NewEnvFlag("v2ray.buf.readv").GetValue(func() string { return defaultFlagValue })
switch value {
case defaultFlagValue, "auto":
if (runtime.GOARCH == "386" || runtime.GOARCH == "amd64" || runtime.GOARCH == "s390x") && (runtime.GOOS == "linux" || runtime.GOOS == "darwin" || runtime.GOOS == "windows") {
if (runtime.GOARCH == "386" || runtime.GOARCH == "amd64" || runtime.GOARCH == "s390x") && (runtime.GOOS == "linux" || runtime.GOOS == "darwin") {
useReadv = true
}
case "enable":