Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/MHSanaei/3x-ui.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/web
diff options
context:
space:
mode:
authormhsanaei <ho3ein.sanaei@gmail.com>2024-07-08 19:19:40 +0300
committermhsanaei <ho3ein.sanaei@gmail.com>2024-07-08 19:24:07 +0300
commit6d18a15c4ec9b7172eb4d874d3516cab8c4f9c6a (patch)
tree66d7c9717bc2e4baaf259623f06cfce2f98cbd14 /web
parentc0f86d2f388340ab5dc161ecbfef9f190937a959 (diff)
Expand arch support in downloadXRay
Diffstat (limited to 'web')
-rw-r--r--web/service/server.go10
1 files changed, 10 insertions, 0 deletions
diff --git a/web/service/server.go b/web/service/server.go
index 254dac63..0d7874d5 100644
--- a/web/service/server.go
+++ b/web/service/server.go
@@ -312,6 +312,16 @@ func (s *ServerService) downloadXRay(version string) (string, error) {
arch = "64"
case "arm64":
arch = "arm64-v8a"
+ case "armv7":
+ arch = "arm32-v7a"
+ case "armv6":
+ arch = "arm32-v6"
+ case "armv5":
+ arch = "arm32-v5"
+ case "386":
+ arch = "32"
+ case "s390x":
+ arch = "s390x"
}
fileName := fmt.Sprintf("Xray-%s-%s.zip", osName, arch)