From d739bcf71e300be51e62f73e9c35a7cc1557a8db Mon Sep 17 00:00:00 2001 From: Roman Gogolev Date: Mon, 8 Jun 2026 10:55:44 +0300 Subject: [PATCH] fix arm architecture xray binary file name (#5060) --- xray/process.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/xray/process.go b/xray/process.go index 6c023f27..e1d70a52 100644 --- a/xray/process.go +++ b/xray/process.go @@ -23,7 +23,11 @@ import ( // GetBinaryName returns the Xray binary filename for the current OS and architecture. func GetBinaryName() string { - return fmt.Sprintf("xray-%s-%s", runtime.GOOS, runtime.GOARCH) + arch := runtime.GOARCH + if arch == "arm" { + arch = "arm32" + } + return fmt.Sprintf("xray-%s-%s", runtime.GOOS, arch) } // GetBinaryPath returns the full path to the Xray binary executable.