仅启用singbox时更新Srs文件

This commit is contained in:
j2rong4cn 2025-03-21 21:30:02 +08:00 committed by GitHub
parent 2a4ba2a751
commit 62949cf389
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -239,7 +239,9 @@ namespace ServiceLib.Services
{
await UpdateGeoFiles(config, updateFunc);
await UpdateOtherFiles(config, updateFunc);
await UpdateSrsFileAll(config, updateFunc);
if (config.CoreBasicItem.EnableCacheFile4Sbox && (config.CheckUpdateItem.SelectedCoreTypes?.Contains(ECoreType.sing_box.ToString()) ?? true)){
await UpdateSrsFileAll(config, updateFunc);
}
_updateFunc?.Invoke(true, string.Format(ResUI.MsgDownloadGeoFileSuccessfully, "geo"));
}