Package Details: xray 25.3.6-1

Git Clone URL: https://aur.archlinux.org/xray.git (read-only, click to copy)
Package Base: xray
Description: The best v2ray-core, with XTLS support
Upstream URL: https://github.com/XTLS/Xray-core
Keywords: anticensorship proxy tunnel v2ray vpn xray
Licenses: MPL-2.0
Provides: v2ray
Submitter: AkinoKaede
Maintainer: mhdi
Last Packager: mhdi
Votes: 23
Popularity: 0.69
First Submitted: 2020-11-26 15:14 (UTC)
Last Updated: 2025-03-10 06:06 (UTC)

Required by (15)

Sources (5)

Latest Comments

1 2 3 Next › Last »

mhdi commented on 2025-04-03 21:00 (UTC)

@raxp I'm fine with adding aarch64 to the PKGBUILD, but I need someone to take responsibility for testing it on an aarch64 machine for each release, as I don't have access to one.

raxp commented on 2025-04-01 14:32 (UTC)

@mhdi ArchLinux ARM user here. Just installed xray on aarch64, seems to build and work without any issue. Since even their git repo offers ARM binaries itself, maybe it's safe to enable aarch64 in PKGBUILD?

hamidrezakp commented on 2025-01-02 18:29 (UTC)

@mhdi The path of geosite.dat and possibly geoip.dat is different from what xray expects, can you update the paths to work with new v2ray-geoip and v2ray-domain-list-community packages?

mhdi commented on 2025-01-02 10:45 (UTC)

Thanks to @qubeck, this package now depends on v2ray-domain-list-community and v2ray-geoip from the official Arch repo, replacing xray-domain-list-community and xray-geoip.

qubeck commented on 2024-12-23 14:49 (UTC) (edited on 2024-12-23 14:50 (UTC) by qubeck)

It seems that xray-domain-list-community and xray-geoip could be replaced with v2ray-domain-list-community and v2ray-geoip as they source exactly the same files. The only thing to add to build() is something like in the xray-assets-symlinks

micwoj92 commented on 2024-08-31 11:47 (UTC)

@mhdi can you please update this package since since you adopted it after it was orphaned?

m1h commented on 2023-09-03 14:16 (UTC) (edited on 2023-09-03 14:16 (UTC) by m1h)

It is possible to fix with patch.

prepare() {
    cd "${srcdir}"/"Xray-core-${pkgver}"/
    patch --forward --strip=1 --input="${srcdir}/xray.patch"
}

xray.patch:

diff --unified --recursive --text Xray-core-1.8.4/go.mod /tmp/Xray-core-1.8.4/go.mod
--- Xray-core-1.8.4/go.mod  2023-09-02 13:10:10.124580004 +0100
+++ /tmp/Xray-core-1.8.4/go.mod 2023-09-02 13:00:51.736656498 +0100
@@ -14,11 +14,11 @@
    github.com/refraction-networking/utls v1.4.3
    github.com/sagernet/sing v0.2.9
    github.com/sagernet/sing-shadowsocks v0.2.4
-   github.com/sagernet/wireguard-go v0.0.0-20221116151939-c99467f53f2c
    github.com/seiflotfy/cuckoofilter v0.0.0-20220411075957-e3b120b3f5fb
    github.com/stretchr/testify v1.8.4
    github.com/v2fly/ss-bloomring v0.0.0-20210312155135-28617310f63e
    github.com/xtls/reality v0.0.0-20230828171259-e426190d57f6
+   github.com/xtls/wireguard-go v0.0.0-20230303120718-56f003b3a66e
    go4.org/netipx v0.0.0-20230824141953-6213f710f925
    golang.org/x/crypto v0.12.0
    golang.org/x/net v0.14.0
diff --unified --recursive --text Xray-core-1.8.4/go.sum /tmp/Xray-core-1.8.4/go.sum
--- Xray-core-1.8.4/go.sum  2023-09-02 13:10:10.127913385 +0100
+++ /tmp/Xray-core-1.8.4/go.sum 2023-09-02 13:00:58.180078855 +0100
@@ -127,8 +127,6 @@
 github.com/sagernet/sing v0.2.9/go.mod h1:Ta8nHnDLAwqySzKhGoKk4ZIB+vJ3GTKj7UPrWYvM+4w=
 github.com/sagernet/sing-shadowsocks v0.2.4 h1:s/CqXlvFAZhlIoHWUwPw5CoNnQ9Ibki9pckjuugtVfY=
 github.com/sagernet/sing-shadowsocks v0.2.4/go.mod h1:80fNKP0wnqlu85GZXV1H1vDPC/2t+dQbFggOw4XuFUM=
-github.com/sagernet/wireguard-go v0.0.0-20221116151939-c99467f53f2c h1:vK2wyt9aWYHHvNLWniwijBu/n4pySypiKRhN32u/JGo=
-github.com/sagernet/wireguard-go v0.0.0-20221116151939-c99467f53f2c/go.mod h1:euOmN6O5kk9dQmgSS8Df4psAl3TCjxOz0NW60EWkSaI=
 github.com/seiflotfy/cuckoofilter v0.0.0-20220411075957-e3b120b3f5fb h1:XfLJSPIOUX+osiMraVgIrMR27uMXnRJWGm1+GL8/63U=
 github.com/seiflotfy/cuckoofilter v0.0.0-20220411075957-e3b120b3f5fb/go.mod h1:bR6DqgcAl1zTcOX8/pE2Qkj9XO00eCNqmKb7lXP8EAg=
 github.com/sergi/go-diff v1.0.0/go.mod h1:0CfEIISq7TuYL3j771MWULgwwjU+GofnZX9QAmXWZgo=
@@ -168,6 +166,8 @@
 github.com/viant/toolbox v0.24.0/go.mod h1:OxMCG57V0PXuIP2HNQrtJf2CjqdmbrOx5EkMILuUhzM=
 github.com/xtls/reality v0.0.0-20230828171259-e426190d57f6 h1:T+YCYGfFdzyaKTDCdZn/hEiKvsw6yUfd+e4hze0rCUw=
 github.com/xtls/reality v0.0.0-20230828171259-e426190d57f6/go.mod h1:rkuAY1S9F8eI8gDiPDYvACE8e2uwkyg8qoOTuwWov7Y=
+github.com/xtls/wireguard-go v0.0.0-20230303120718-56f003b3a66e h1:Y0CxNt+TeOhFUS2J/EF6osq9RukduvGYUNk2xPdKW60=
+github.com/xtls/wireguard-go v0.0.0-20230303120718-56f003b3a66e/go.mod h1:XFvPXP1gUqy/12j+KbdShku+YWiZJjaYLEAn4ZXaRGU=
 github.com/yuin/goldmark v1.3.5/go.mod h1:mwnBkeHKe2W/ZEtQ+71ViKU8L12m81fl3OWwC1Zlc8k=
 go.opencensus.io v0.18.0/go.mod h1:vKdFvxhtzZ9onBp9VKHK8z/sRpBMnKAsufL7wlDrCOA=
 go.uber.org/atomic v1.11.0 h1:ZvwS0R+56ePWxUNi+Atn9dWONBPp/AUETXlHW0DxSjE=
diff --unified --recursive --text Xray-core-1.8.4/proxy/wireguard/bind.go /tmp/Xray-core-1.8.4/proxy/wireguard/bind.go
--- Xray-core-1.8.4/proxy/wireguard/bind.go 2023-09-02 13:10:10.127913385 +0100
+++ /tmp/Xray-core-1.8.4/proxy/wireguard/bind.go    2023-09-02 12:59:54.165864688 +0100
@@ -9,7 +9,7 @@
    "strconv"
    "sync"

-   "github.com/sagernet/wireguard-go/conn"
+   "github.com/xtls/wireguard-go/conn"
    xnet "github.com/xtls/xray-core/common/net"
    "github.com/xtls/xray-core/features/dns"
    "github.com/xtls/xray-core/transport/internet"
diff --unified --recursive --text Xray-core-1.8.4/proxy/wireguard/tun.go /tmp/Xray-core-1.8.4/proxy/wireguard/tun.go
--- Xray-core-1.8.4/proxy/wireguard/tun.go  2023-09-02 13:10:10.127913385 +0100
+++ /tmp/Xray-core-1.8.4/proxy/wireguard/tun.go 2023-09-02 12:59:34.828933611 +0100
@@ -12,7 +12,7 @@
    "net/netip"
    "os"

-   "github.com/sagernet/wireguard-go/tun"
+   "github.com/xtls/wireguard-go/tun"
    "github.com/xtls/xray-core/features/dns"
    "gvisor.dev/gvisor/pkg/buffer"
    "gvisor.dev/gvisor/pkg/tcpip"
diff --unified --recursive --text Xray-core-1.8.4/proxy/wireguard/wireguard.go /tmp/Xray-core-1.8.4/proxy/wireguard/wireguard.go
--- Xray-core-1.8.4/proxy/wireguard/wireguard.go    2023-09-02 13:10:10.127913385 +0100
+++ /tmp/Xray-core-1.8.4/proxy/wireguard/wireguard.go   2023-09-02 12:59:09.708591370 +0100
@@ -27,7 +27,7 @@
    "net/netip"
    "strings"

-   "github.com/sagernet/wireguard-go/device"
+   "github.com/xtls/wireguard-go/device"
    "github.com/xtls/xray-core/common"
    "github.com/xtls/xray-core/common/buf"
    "github.com/xtls/xray-core/common/log"

m1h commented on 2023-09-02 12:04 (UTC)

Error when downloading packages:

go: downloading github.com/sagernet/wireguard-go v0.0.0-20221116151939-c99467f53f2c
proxy/wireguard/bind.go:12:2: github.com/sagernet/wireguard-go@v0.0.0-20221116151939-c99467f53f2c: invalid version: unknown revision c99467f53f2c
proxy/wireguard/wireguard.go:30:2: github.com/sagernet/wireguard-go@v0.0.0-20221116151939-c99467f53f2c: invalid version: unknown revision c99467f53f2c
proxy/wireguard/tun.go:15:2: github.com/sagernet/wireguard-go@v0.0.0-20221116151939-c99467f53f2c: invalid version: unknown revision c99467f53f2c

Looks like issue with rebased repo