refactor: 在启动时, 只要 Xray-Core 存在, 则允许检查新版本失败.
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user