Browse Source

Disable auto update geo

pull/5767/head
2dust 2 months ago
parent
commit
4d330cedac
  1. 2
      v2rayN/ServiceLib/Handler/TaskHandler.cs
  2. 2
      v2rayN/ServiceLib/Handler/UpdateHandler.cs

2
v2rayN/ServiceLib/Handler/TaskHandler.cs

@ -12,7 +12,7 @@
public void RegUpdateTask(Config config, Action<bool, string> update)
{
Task.Run(() => UpdateTaskRunSubscription(config, update));
Task.Run(() => UpdateTaskRunGeo(config, update));
//Task.Run(() => UpdateTaskRunGeo(config, update));
}
private async Task UpdateTaskRunSubscription(Config config, Action<bool, string> update)

2
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);

Loading…
Cancel
Save