mirror of
https://github.com/v2fly/v2ray-core.git
synced 2025-12-12 23:37:11 +00:00
default value for strategy random
This commit is contained in:
parent
c26f081101
commit
c958a20565
@ -128,6 +128,14 @@ func (this *InboundDetourConfig) UnmarshalJSON(data []byte) error {
|
|||||||
Refresh: DefaultRefreshMinute,
|
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
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user