mirror of
https://github.com/2dust/v2rayN.git
synced 2026-11-06 04:24:59 +03:00
Preserve complex profile items during deduplication
https://github.com/2dust/v2rayN/issues/9184
This commit is contained in:
@@ -1041,13 +1041,19 @@ public static class ConfigHandler
|
|||||||
|
|
||||||
foreach (var item in lstProfile)
|
foreach (var item in lstProfile)
|
||||||
{
|
{
|
||||||
if (!lstKeep.Exists(i => CompareProfileItem(i, item, false)))
|
if (item.IsComplex())
|
||||||
{
|
{
|
||||||
lstKeep.Add(item);
|
lstKeep.Add(item);
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (lstKeep.Exists(i => CompareProfileItem(i, item, false)))
|
||||||
|
{
|
||||||
|
lstRemove.Add(item);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
lstRemove.Add(item);
|
lstKeep.Add(item);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
await RemoveServers(config, lstRemove);
|
await RemoveServers(config, lstRemove);
|
||||||
|
|||||||
Reference in New Issue
Block a user