From 62949cf38930a500dd350790ec0c48199534ea59 Mon Sep 17 00:00:00 2001 From: j2rong4cn <36783515+j2rong4cn@users.noreply.github.com> Date: Fri, 21 Mar 2025 21:30:02 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BB=85=E5=90=AF=E7=94=A8singbox=E6=97=B6?= =?UTF-8?q?=E6=9B=B4=E6=96=B0Srs=E6=96=87=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- v2rayN/ServiceLib/Services/UpdateService.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/v2rayN/ServiceLib/Services/UpdateService.cs b/v2rayN/ServiceLib/Services/UpdateService.cs index 0452f087..ff51f74b 100644 --- a/v2rayN/ServiceLib/Services/UpdateService.cs +++ b/v2rayN/ServiceLib/Services/UpdateService.cs @@ -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")); }