refactor: 在启动时, 只要 Xray-Core 存在, 则允许检查新版本失败.

This commit is contained in:
2025-02-19 20:12:32 +08:00
parent 15ad1c4bb5
commit c7a7140d28
+8
View File
@@ -259,6 +259,8 @@ public class XrayCoreManager(
logger.LogInformation("未找到 Xray-Core, 开始下载最新版本...");
}
else
{
try
{
var latestXrayCoreVersion = await GetLatestXrayCoreVersion();
if (currentVersion != latestXrayCoreVersion)
@@ -268,6 +270,12 @@ public class XrayCoreManager(
latestXrayCoreVersion);
}
}
catch (HttpRequestException e)
{
logger.LogError(e, "检查 Xray-Core 更新时发生错误, 跳过更新.");
return;
}
}
if (requiredUpdate)
{