mirror of
https://github.com/v2fly/v2ray-core.git
synced 2025-02-01 06:06:53 -05:00
enable readv reader on windows
This commit is contained in:
parent
c59c7f5779
commit
4bd1ef0650
@ -142,7 +142,7 @@ func init() {
|
|||||||
value := platform.NewEnvFlag("v2ray.buf.readv").GetValue(func() string { return defaultFlagValue })
|
value := platform.NewEnvFlag("v2ray.buf.readv").GetValue(func() string { return defaultFlagValue })
|
||||||
switch value {
|
switch value {
|
||||||
case defaultFlagValue, "auto":
|
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
|
useReadv = true
|
||||||
}
|
}
|
||||||
case "enable":
|
case "enable":
|
||||||
|
Loading…
Reference in New Issue
Block a user