mirror of
https://github.com/XTLS/Xray-core.git
synced 2025-06-12 11:29:36 +03:00
Refine environment var
Address some review comments
This commit is contained in:
@ -83,12 +83,8 @@ func ManagerType() interface{} {
|
||||
var defaultBufferSize int32
|
||||
|
||||
func init() {
|
||||
const key = "xray.ray.buffer.size"
|
||||
const defaultValue = -17
|
||||
size := platform.EnvFlag{
|
||||
Name: key,
|
||||
AltName: platform.NormalizeEnvName(key),
|
||||
}.GetValueAsInt(defaultValue)
|
||||
size := platform.NewEnvFlag(platform.BufferSize).GetValueAsInt(defaultValue)
|
||||
|
||||
switch size {
|
||||
case 0:
|
||||
|
Reference in New Issue
Block a user