From 6ec61433fb87ff56282fca380fc15ae4ff099789 Mon Sep 17 00:00:00 2001 From: 2dust <31833384+2dust@users.noreply.github.com> Date: Fri, 1 Nov 2024 09:26:15 +0800 Subject: [PATCH] Only update the stable version of the core https://github.com/2dust/v2rayN/issues/5950 --- v2rayN/ServiceLib/ViewModels/CheckUpdateViewModel.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/v2rayN/ServiceLib/ViewModels/CheckUpdateViewModel.cs b/v2rayN/ServiceLib/ViewModels/CheckUpdateViewModel.cs index 741bde64e73..a467f7465e1 100644 --- a/v2rayN/ServiceLib/ViewModels/CheckUpdateViewModel.cs +++ b/v2rayN/ServiceLib/ViewModels/CheckUpdateViewModel.cs @@ -99,13 +99,13 @@ private async Task CheckUpdate() { await CheckUpdateN(EnableCheckPreReleaseUpdate); } - else if (item.CoreType == ECoreType.mihomo.ToString()) + else if (item.CoreType == ECoreType.Xray.ToString()) { - await CheckUpdateCore(item, false); + await CheckUpdateCore(item, EnableCheckPreReleaseUpdate); } else { - await CheckUpdateCore(item, EnableCheckPreReleaseUpdate); + await CheckUpdateCore(item, false); } }