mirror of
https://github.com/2dust/v2rayN.git
synced 2026-02-28 05:03:02 +00:00
Fix
This commit is contained in:
parent
50d8d99336
commit
71594cf594
1 changed files with 4 additions and 5 deletions
|
|
@ -13,13 +13,12 @@ public class CoreConfigContextBuilder
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public static async Task<CoreConfigContextBuilderResult> Build(Config config, ProfileItem node)
|
public static async Task<CoreConfigContextBuilderResult> Build(Config config, ProfileItem node)
|
||||||
{
|
{
|
||||||
var coreType = AppManager.Instance.GetCoreType(node, node.ConfigType) == ECoreType.sing_box
|
var runCoreType = AppManager.Instance.GetCoreType(node, node.ConfigType);
|
||||||
? ECoreType.sing_box
|
var coreType = runCoreType == ECoreType.sing_box ? ECoreType.sing_box : ECoreType.Xray;
|
||||||
: ECoreType.Xray;
|
|
||||||
var context = new CoreConfigContext()
|
var context = new CoreConfigContext()
|
||||||
{
|
{
|
||||||
Node = node,
|
Node = node,
|
||||||
RunCoreType = AppManager.Instance.GetCoreType(node, node.ConfigType),
|
RunCoreType = runCoreType,
|
||||||
AllProxiesMap = [],
|
AllProxiesMap = [],
|
||||||
AppConfig = config,
|
AppConfig = config,
|
||||||
FullConfigTemplate = await AppManager.Instance.GetFullConfigTemplateItem(coreType),
|
FullConfigTemplate = await AppManager.Instance.GetFullConfigTemplateItem(coreType),
|
||||||
|
|
@ -298,7 +297,6 @@ public class CoreConfigContextBuilder
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
globalVisitedGroup.Add(childNode.IndexId);
|
|
||||||
var newAncestorsGroup = new HashSet<string>(ancestorsGroup) { childNode.IndexId };
|
var newAncestorsGroup = new HashSet<string>(ancestorsGroup) { childNode.IndexId };
|
||||||
var childGroupResult =
|
var childGroupResult =
|
||||||
await TraverseGroupNodeAsync(context, childNode, globalVisitedGroup, newAncestorsGroup);
|
await TraverseGroupNodeAsync(context, childNode, globalVisitedGroup, newAncestorsGroup);
|
||||||
|
|
@ -311,6 +309,7 @@ public class CoreConfigContextBuilder
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
globalVisitedGroup.Add(childNode.IndexId);
|
||||||
childIndexIdList.Add(childNode.IndexId);
|
childIndexIdList.Add(childNode.IndexId);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue