From a6289347cc520bd32676076f8e1e347bc55581da Mon Sep 17 00:00:00 2001 From: 2dust <31833384+2dust@users.noreply.github.com> Date: Mon, 11 Nov 2024 09:37:49 +0800 Subject: [PATCH] Bug fix https://github.com/2dust/v2rayN/issues/6037 --- v2rayN/ServiceLib/Handler/CoreInfoHandler.cs | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/v2rayN/ServiceLib/Handler/CoreInfoHandler.cs b/v2rayN/ServiceLib/Handler/CoreInfoHandler.cs index 5f5656ee..346aa957 100644 --- a/v2rayN/ServiceLib/Handler/CoreInfoHandler.cs +++ b/v2rayN/ServiceLib/Handler/CoreInfoHandler.cs @@ -1,6 +1,4 @@ -using System.Runtime.Intrinsics.X86; - -namespace ServiceLib.Handler +namespace ServiceLib.Handler { public sealed class CoreInfoHandler { @@ -89,7 +87,7 @@ namespace ServiceLib.Handler _coreInfo.Add(new CoreInfo { CoreType = ECoreType.mihomo, - CoreExes = new List { $"mihomo-windows-amd64{(Avx2.X64.IsSupported ? "" : "-compatible")}", "mihomo-windows-amd64-compatible", "mihomo-windows-amd64", "mihomo-windows-386", "mihomo", "clash" }, + CoreExes = new List { "mihomo-windows-amd64-compatible", "mihomo-windows-amd64", "mihomo-linux-amd64", "mihomo", "clash" }, Arguments = "-f config.json" + PortableMode(), Url = Global.MihomoCoreUrl, ReleaseApiUrl = Global.MihomoCoreUrl.Replace(Global.GithubUrl, Global.GithubApiUrl), @@ -105,7 +103,7 @@ namespace ServiceLib.Handler _coreInfo.Add(new CoreInfo { CoreType = ECoreType.hysteria, - CoreExes = new List { "hysteria-windows-amd64", "hysteria-windows-386", "hysteria" }, + CoreExes = new List { "hysteria-windows-amd64", "hysteria" }, Arguments = "", Url = Global.HysteriaCoreUrl, ReleaseApiUrl = Global.HysteriaCoreUrl.Replace(Global.GithubUrl, Global.GithubApiUrl), @@ -157,7 +155,7 @@ namespace ServiceLib.Handler _coreInfo.Add(new CoreInfo { CoreType = ECoreType.hysteria2, - CoreExes = new List { "hysteria-windows-amd64", "hysteria-windows-386", "hysteria" }, + CoreExes = new List { "hysteria-windows-amd64", "hysteria-linux-amd64", "hysteria" }, Arguments = "", Url = Global.HysteriaCoreUrl, ReleaseApiUrl = Global.HysteriaCoreUrl.Replace(Global.GithubUrl, Global.GithubApiUrl),