浏览代码

enable readv reader on windows

Darien Raymond 7 年之前
父节点
当前提交
4bd1ef0650
共有 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") {
+		if (runtime.GOARCH == "386" || runtime.GOARCH == "amd64" || runtime.GOARCH == "s390x") && (runtime.GOOS == "linux" || runtime.GOOS == "darwin" || runtime.GOOS == "windows") {
 			useReadv = true
 		}
 	case "enable":