mirror of
https://github.com/2dust/v2rayN.git
synced 2026-11-05 03:55:00 +03:00
Revert "Fix" (#9727)
* Revert "Fix"
This reverts commit 45ab7503e3.
* Fix
This commit is contained in:
@@ -37,10 +37,7 @@ public partial class CoreConfigV2rayService
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Case 3: need to create or insert based on multipleLoad type
|
// Case 3: need to create or insert based on multipleLoad type
|
||||||
if (multipleLoad is EMultipleLoad.LeastLoad
|
if (multipleLoad is EMultipleLoad.LeastLoad or EMultipleLoad.Fallback)
|
||||||
or EMultipleLoad.Fallback
|
|
||||||
or EMultipleLoad.Random
|
|
||||||
or EMultipleLoad.RoundRobin)
|
|
||||||
{
|
{
|
||||||
if (_coreConfig.burstObservatory is null)
|
if (_coreConfig.burstObservatory is null)
|
||||||
{
|
{
|
||||||
@@ -99,16 +96,18 @@ public partial class CoreConfigV2rayService
|
|||||||
var balancer = new BalancersItem4Ray
|
var balancer = new BalancersItem4Ray
|
||||||
{
|
{
|
||||||
selector = [selector],
|
selector = [selector],
|
||||||
strategy = strategyType == "leastLoad" ? new()
|
strategy = new()
|
||||||
{
|
{
|
||||||
type = strategyType,
|
type = strategyType,
|
||||||
settings = new()
|
settings = strategyType == "leastLoad"
|
||||||
{
|
? new()
|
||||||
expected = 1,
|
{
|
||||||
tolerance = multipleLoad == EMultipleLoad.Fallback ? 0.2 : null,
|
expected = 1,
|
||||||
maxRTT = multipleLoad == EMultipleLoad.Fallback ? "5000ms" : null,
|
tolerance = multipleLoad == EMultipleLoad.Fallback ? 0.2 : null,
|
||||||
},
|
maxRTT = multipleLoad == EMultipleLoad.Fallback ? "5000ms" : null,
|
||||||
} : null,
|
}
|
||||||
|
: null,
|
||||||
|
},
|
||||||
tag = balancerTag,
|
tag = balancerTag,
|
||||||
fallbackTag = _coreConfig.outbounds?.FirstOrDefault(o => o.tag.StartsWith(selector))?.tag,
|
fallbackTag = _coreConfig.outbounds?.FirstOrDefault(o => o.tag.StartsWith(selector))?.tag,
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user