Limit update checks to selected core types

https://github.com/2dust/v2rayN/issues/9381
This commit is contained in:
2dust
2026-05-28 14:31:01 +08:00
parent 4ae5c021fd
commit e6f4a57913
2 changed files with 21 additions and 5 deletions
@@ -117,6 +117,11 @@ public class UpdateService(Config config, Func<bool, string, Task> updateFunc)
var msgs = new List<string>();
foreach (var type in CoreInfoManager.Instance.GetCheckUpdateCoreTypes())
{
if (!(_config.CheckUpdateItem.SelectedCoreTypes?.Contains(type.ToString()) ?? true))
{
continue;
}
var result = await CheckHasUpdateOnly(type, preRelease);
if (result.Success && result.Version != null)
{