mirror of
https://github.com/v2ray/v2ray-core.git
synced 2026-10-25 23:59:25 +00:00
fix default value for size = 0
This commit is contained in:
@@ -57,7 +57,9 @@ func init() {
|
||||
Name: raySizeEnvKey,
|
||||
AltName: platform.NormalizeEnvName(raySizeEnvKey),
|
||||
}.GetValueAsInt(10)
|
||||
if size > 0 {
|
||||
if size == 0 {
|
||||
defaultLimit = 2147483647
|
||||
} else {
|
||||
defaultLimit = int32(size) * 1024 * 1024
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user