mirror of
https://github.com/v2fly/v2ray-core.git
synced 2025-01-17 23:06:30 -05:00
fix default value for size = 0
This commit is contained in:
parent
70b2b22047
commit
0301222e22
@ -57,7 +57,9 @@ func init() {
|
|||||||
Name: raySizeEnvKey,
|
Name: raySizeEnvKey,
|
||||||
AltName: platform.NormalizeEnvName(raySizeEnvKey),
|
AltName: platform.NormalizeEnvName(raySizeEnvKey),
|
||||||
}.GetValueAsInt(10)
|
}.GetValueAsInt(10)
|
||||||
if size > 0 {
|
if size == 0 {
|
||||||
|
defaultLimit = 2147483647
|
||||||
|
} else {
|
||||||
defaultLimit = int32(size) * 1024 * 1024
|
defaultLimit = int32(size) * 1024 * 1024
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user