mirror of
https://github.com/2dust/v2rayN.git
synced 2026-05-17 20:54:36 +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)
|
||||
{
|
||||
if (!lstKeep.Exists(i => CompareProfileItem(i, item, false)))
|
||||
if (item.IsComplex())
|
||||
{
|
||||
lstKeep.Add(item);
|
||||
continue;
|
||||
}
|
||||
|
||||
if (lstKeep.Exists(i => CompareProfileItem(i, item, false)))
|
||||
{
|
||||
lstRemove.Add(item);
|
||||
}
|
||||
else
|
||||
{
|
||||
lstRemove.Add(item);
|
||||
lstKeep.Add(item);
|
||||
}
|
||||
}
|
||||
await RemoveServers(config, lstRemove);
|
||||
|
||||
Reference in New Issue
Block a user