From 4d330cedacb7cbd3c02d2486a5ef73b7751ae659 Mon Sep 17 00:00:00 2001 From: 2dust <31833384+2dust@users.noreply.github.com> Date: Mon, 23 Sep 2024 17:05:03 +0800 Subject: [PATCH] Disable auto update geo --- v2rayN/ServiceLib/Handler/TaskHandler.cs | 2 +- v2rayN/ServiceLib/Handler/UpdateHandler.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/v2rayN/ServiceLib/Handler/TaskHandler.cs b/v2rayN/ServiceLib/Handler/TaskHandler.cs index 0add446a..b010d716 100644 --- a/v2rayN/ServiceLib/Handler/TaskHandler.cs +++ b/v2rayN/ServiceLib/Handler/TaskHandler.cs @@ -12,7 +12,7 @@ public void RegUpdateTask(Config config, Action update) { Task.Run(() => UpdateTaskRunSubscription(config, update)); - Task.Run(() => UpdateTaskRunGeo(config, update)); + //Task.Run(() => UpdateTaskRunGeo(config, update)); } private async Task UpdateTaskRunSubscription(Config config, Action update) diff --git a/v2rayN/ServiceLib/Handler/UpdateHandler.cs b/v2rayN/ServiceLib/Handler/UpdateHandler.cs index 49703f1c..263214c2 100644 --- a/v2rayN/ServiceLib/Handler/UpdateHandler.cs +++ b/v2rayN/ServiceLib/Handler/UpdateHandler.cs @@ -276,7 +276,7 @@ namespace ServiceLib.Handler var coreInfo = CoreInfoHandler.Instance.GetCoreInfo(type); var url = coreInfo?.coreReleaseApiUrl; - var result = await downloadHandle.DownloadStringAsync(url, true, Global.AppName); + var result = await downloadHandle.TryDownloadString(url, true, Global.AppName); if (Utils.IsNotEmpty(result)) { return await ParseDownloadUrl(type, result, preRelease);