Browse Source

enable readv reader on windows

pull/1269/head
Darien Raymond 6 years ago
parent
commit
4bd1ef0650
No known key found for this signature in database
GPG Key ID: 7251FFA14BB18169
  1. 2
      common/buf/readv_reader.go

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

Loading…
Cancel
Save