fix: 当具有已存在的 Xray 核心程序时, 即使更新失败也不会终止程序.
This commit is contained in:
@@ -278,10 +278,21 @@ public class XrayCoreManager(
|
||||
}
|
||||
|
||||
if (requiredUpdate)
|
||||
{
|
||||
try
|
||||
{
|
||||
await FetchXrayCoreProgram();
|
||||
logger.LogInformation("Xray-Core 更新完成.");
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
logger.LogError(e, "更新 Xray-Core 时发生错误.");
|
||||
if (currentVersion == null)
|
||||
{
|
||||
throw;
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
logger.LogInformation("Xray-Core 已是最新版本, 无需更新.");
|
||||
|
||||
Reference in New Issue
Block a user