Преглед на файлове

fix arm architecture xray binary file name (#5060)

Roman Gogolev преди 12 часа
родител
ревизия
d739bcf71e
променени са 1 файла, в които са добавени 5 реда и са изтрити 1 реда
  1. 5 1
      xray/process.go

+ 5 - 1
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.