Преглед изворни кода

Revert "enable readv reader on windows"

This reverts commit 4bd1ef0650ccaeb69e67e660769a35ce6d7ce942.
Darien Raymond пре 7 година
родитељ
комит
8899f985ce
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      common/buf/readv_reader.go

+ 1 - 1
common/buf/readv_reader.go

@@ -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":