Package Details: xray 1.8.10-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: MPL2
Provides: v2ray
Submitter: AkinoKaede
Maintainer: dctxmei (DuckSoft, lilac)
Last Packager: lilac
Votes: 16
Popularity: 1.33
First Submitted: 2020-11-26 15:14 (UTC)
Last Updated: 2024-03-30 12:46 (UTC)

Required by (17)

Sources (5)

Latest Comments

1 2 Next › Last »

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

nuledg commented on 2023-04-17 07:54 (UTC) (edited on 2023-04-17 07:57 (UTC) by nuledg)

If you get an error like : reading https://proxy.golang.org/github.com/klauspost/compress/@v/v1.16.0.zip: 403 Forbidden You should first change your IP and also set GOPROXY environment variable to direct : GOPROXY=direct afterward install Xray.

Orville commented on 2022-11-29 15:34 (UTC)

This software's name is conflict with xray, "a tool for recon, mapping and OSINT gathering from public networks." in blackarch repo.

Since this software's full name is Xray-core, I suggest maybe we should create an alternative package named xray-core or even migrate this package to the new one.

AkinoKaede commented on 2021-08-21 04:24 (UTC)

@enihcam Yes, we should update s/sys to compile with Go 1.17, but this software has not been maintained for a long time.

Related issues: https://github.com/golang/go/issues/46763

AkinoKaede commented on 2021-01-30 00:47 (UTC)

@enihcam @showgood163 Sorry, I cannot do this according to the specification, you can try to build it by skipping the arch check (makepkg -A)