diff --git a/v2rayN/ServiceLib/Services/UpdateService.cs b/v2rayN/ServiceLib/Services/UpdateService.cs index 86b5d889..1d690530 100644 --- a/v2rayN/ServiceLib/Services/UpdateService.cs +++ b/v2rayN/ServiceLib/Services/UpdateService.cs @@ -302,14 +302,10 @@ public class UpdateService(Config config, Func updateFunc) else if (Utils.IsLinux()) { - var arch = RuntimeInformation.ProcessArchitecture; - if (arch.ToString().Equals("RiscV64", StringComparison.OrdinalIgnoreCase)) - { - return coreInfo?.DownloadUrlLinuxRiscV64; - } - return arch switch + return RuntimeInformation.ProcessArchitecture switch { Architecture.Arm64 => coreInfo?.DownloadUrlLinuxArm64, + Architecture.RiscV64 => coreInfo?.DownloadUrlLinuxRiscV64, Architecture.X64 => coreInfo?.DownloadUrlLinux64, _ => null, };