fix: 当具有已存在的 Xray 核心程序时, 即使更新失败也不会终止程序.

This commit is contained in:
2025-03-16 22:12:38 +08:00
parent 4f88ae83d8
commit f60092b4ea
+13 -2
View File
@@ -279,8 +279,19 @@ public class XrayCoreManager(
if (requiredUpdate)
{
await FetchXrayCoreProgram();
logger.LogInformation("Xray-Core 更新完成.");
try
{
await FetchXrayCoreProgram();
logger.LogInformation("Xray-Core 更新完成.");
}
catch (Exception e)
{
logger.LogError(e, "更新 Xray-Core 时发生错误.");
if (currentVersion == null)
{
throw;
}
}
}
else
{