mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-08-18 01:00:59 +00:00
fix arm architecture xray binary file name (#5060)
This commit is contained in:
+5
-1
@@ -23,7 +23,11 @@ import (
|
|||||||
|
|
||||||
// GetBinaryName returns the Xray binary filename for the current OS and architecture.
|
// GetBinaryName returns the Xray binary filename for the current OS and architecture.
|
||||||
func GetBinaryName() string {
|
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.
|
// GetBinaryPath returns the full path to the Xray binary executable.
|
||||||
|
|||||||
Reference in New Issue
Block a user