mirror of
https://github.com/2dust/v2rayN.git
synced 2026-02-28 13:13:04 +00:00
Remove duplicates
This commit is contained in:
parent
36dc824f2f
commit
d4fdb93b55
1 changed files with 6 additions and 3 deletions
|
|
@ -183,18 +183,21 @@ public static class CoreConfigHandler
|
||||||
{
|
{
|
||||||
return node;
|
return node;
|
||||||
}
|
}
|
||||||
context.AllProxiesMap[node.IndexId] = node;
|
|
||||||
var newItems = new List<ProfileItem> { node };
|
var newItems = new List<ProfileItem> { node };
|
||||||
|
|
||||||
if (node.ConfigType.IsGroupType())
|
if (node.ConfigType.IsGroupType())
|
||||||
{
|
{
|
||||||
var groupChildList = await GroupProfileManager.GetAllChildProfileItems(node);
|
var groupChildList = await GroupProfileManager.GetAllChildProfileItems(node);
|
||||||
foreach (var childItem in groupChildList)
|
foreach (var childItem in groupChildList)
|
||||||
{
|
{
|
||||||
context.AllProxiesMap[childItem.IndexId] = childItem;
|
context.AllProxiesMap[childItem.IndexId] = childItem;
|
||||||
newItems.Add(childItem);
|
|
||||||
}
|
}
|
||||||
|
node.SetProtocolExtra(node.GetProtocolExtra() with
|
||||||
|
{
|
||||||
|
ChildItems = Utils.List2String(groupChildList.Select(n => n.IndexId).ToList()),
|
||||||
|
});
|
||||||
|
newItems.AddRange(groupChildList);
|
||||||
}
|
}
|
||||||
|
context.AllProxiesMap[node.IndexId] = node;
|
||||||
|
|
||||||
foreach (var item in newItems)
|
foreach (var item in newItems)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue