diff --git a/Proxd-man/XrayCoreManager.cs b/Proxd-man/XrayCoreManager.cs index 3a670fc..0c0306c 100644 --- a/Proxd-man/XrayCoreManager.cs +++ b/Proxd-man/XrayCoreManager.cs @@ -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 {