You've already forked v2ray-core
default value for strategy random
This commit is contained in:
@@ -128,6 +128,14 @@ func (this *InboundDetourConfig) UnmarshalJSON(data []byte) error {
|
||||
Refresh: DefaultRefreshMinute,
|
||||
}
|
||||
}
|
||||
if this.Allocation.Strategy == AllocationStrategyRandom {
|
||||
if this.Allocation.Refresh == 0 {
|
||||
this.Allocation.Refresh = 5
|
||||
}
|
||||
if this.Allocation.Concurrency == 0 {
|
||||
this.Allocation.Concurrency == 3
|
||||
}
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user