XTLS/Xray-core
摘要
# XTLS/Xray-core 源码:[https://github.com/XTLS/Xray-core](https://github.com/XTLS/Xray-core) ## Project X [Project X](https://github.com/XTLS) 源于 XTLS 协议,提供 [Xray-core](https://github.com/XTLS/Xray-core) 和 [REALITY](https://github.com/XTLS/REALITY) 等网络工具套件。[README](https://github.com/XTLS/Xray-core#readme) 公开,欢迎在此提交您的项目[PR](https://github.com/XTLS/Xray-core/pulls)。 ## 赞助商 [起源于 XTLS 协议,提供了一系列网络工具,包括 Xray-core(https://github.com/XTLS/Xray-core)和 REALITY(https://github.com/XTLS/REALITY)。README(https://github.com/XTLS/Xray-core#readme)是开放的,欢迎在此提交您的项目(https://github.com/XTLS/Xray-core/pulls)。
赞助商
Remnawave(https://docs.rw) Happ(https://happ.su) BlancVPN(https://blanc.link/VMTSDqW)
赞助 Xray-core(https://github.com/XTLS/Xray-core/issues/3668)
捐赠与 NFT
收集 Project X NFT 以支持 Project X 的开发!(https://opensea.io/item/ethereum/0x5ee362866001613093361eb8569d59c4141b76d1/1)
- TRX(Tron)/USDT/USDC:
TNrDh5VSfwd4RPrwsohr6poyNTfFefNYan - TON:
UQApeV-u2gm43aC1uP76xAC1m6vCylstaN1gpfBmre_5IyTH - BTC:
1JpqcziZZuqv3QQJhZGNGBVdCBrGgkL6cT - XMR:
4ABHQZ3yJZkBnLoqiKvb3f8eqUnX4iMPb6wdant5ZLGQELctcerceSGEfJnoCk6nnyRZm73wrwSgvZ2WmjYLng6R7sR67nq - SOL/USDT/USDC:
3x5NuXHzB5APG6vRinPZcsUv5ukWUY1tBGRSJiEJWtZa - ETH/USDT/USDC:
0xDc3Fe44F0f25D13CACb1C4896CD0D321df3146Ee - Project X NFT: https://opensea.io/item/ethereum/0x5ee362866001613093361eb8569d59c4141b76d1/1
- VLESS NFT: https://opensea.io/collection/vless
- REALITY NFT: https://opensea.io/item/ethereum/0x5ee362866001613093361eb8569d59c4141b76d1/2
- 相关链接:VLESS 后量子加密(https://github.com/XTLS/Xray-core/pull/5067)、XHTTP:超越 REALITY(https://github.com/XTLS/Xray-core/discussions/4113)、Project X NFT 公告(https://github.com/XTLS/Xray-core/discussions/3633)
许可证
Mozilla 公共许可证版本 2.0(https://github.com/XTLS/Xray-core/blob/main/LICENSE)
文档
Project X 官方网站(https://xtls.github.io)
Telegram
Project X(https://t.me/projectXray) Project X 频道(https://t.me/projectXtls) Project VLESS(https://t.me/projectVless)(俄语) Project XHTTP(https://t.me/projectXhttp)(波斯语)
安装
- Linux 脚本
- XTLS/Xray-install(https://github.com/XTLS/Xray-install)(官方)
- tempest(https://github.com/team-cloudchaser/tempest)(支持
systemd(https://systemd.io)和 OpenRC(https://github.com/OpenRC/openrc);仅限 Linux)
- Docker
- ghcr.io/xtls/xray-core(https://ghcr.io/xtls/xray-core)(官方)
- teddysun/xray(https://hub.docker.com/r/teddysun/xray)
- wulabing/xray_docker(https://github.com/wulabing/xray_docker)
- Web 面板
- Remnawave(https://github.com/remnawave/panel)
- 3X-UI(https://github.com/MHSanaei/3x-ui)
- PasarGuard(https://github.com/PasarGuard/panel)
- Xray-UI(https://github.com/qist/xray-ui)
- X-Panel(https://github.com/xeefei/X-Panel)
- Marzban(https://github.com/Gozargah/Marzban)
- Hiddify(https://github.com/hiddify/Hiddify-Manager)
- TX-UI(https://github.com/AghayeCoder/tx-ui)
- CELERITY(https://github.com/ClickDevTech/CELERITY-panel)
- 一键脚本
- Xray-REALITY(https://github.com/zxcvos/Xray-script)、xray-reality(https://github.com/sajjaddg/xray-reality)、reality-ezpz(https://github.com/aleskxyz/reality-ezpz)
- Xray_bash_onekey(https://github.com/hello-yunshu/Xray_bash_onekey)、XTool(https://github.com/LordPenguin666/XTool)、VPainLess(https://github.com/vpainless/vpainless)
- v2ray-agent(https://github.com/mack-a/v2ray-agent)、Xray_onekey(https://github.com/wulabing/Xray_onekey)、ProxySU(https://github.com/proxysu/ProxySU)
- Magisk
- NetProxy-Magisk(https://github.com/Fanju6/NetProxy-Magisk)
- Xray4Magisk(https://github.com/Asterisk4Magisk/Xray4Magisk)
- Xray_For_Magisk(https://github.com/E7KMbb/Xray_For_Magisk)
- Homebrew
brew install xray
使用方法
- 案例
- VLESS-XTLS-uTLS-REALITY(https://github.com/XTLS/REALITY#readme)
- VLESS-TCP-XTLS-Vision(https://github.com/XTLS/Xray-examples/tree/main/VLESS-TCP-XTLS-Vision)
- All-in-One-fallbacks-Nginx(https://github.com/XTLS/Xray-examples/tree/main/All-in-One-fallbacks-Nginx)
- Xray 示例
- XTLS/Xray-examples(https://github.com/XTLS/Xray-examples)
- chika0801/Xray-examples(https://github.com/chika0801/Xray-examples)
- lxhao61/integrated-examples(https://github.com/lxhao61/integrated-examples)
- 教程
- XTLS Vision(https://github.com/chika0801/Xray-install)
- REALITY(英文)(https://cscot.pages.dev/2023/03/02/Xray-REALITY-tutorial/)
- XTLS-Iran-Reality(英文)(https://github.com/SasukeFreestyle/XTLS-Iran-Reality)
- Xray REALITY 自主“steal oneself“(英文)(https://computerscot.github.io/vless-xtls-utls-reality-steal-oneself.html)
- Xray 配合 WireGuard inbound(英文)(https://g800.pages.dev/wireguard)
GUI 客户端
- OpenWrt
- PassWall(https://github.com/Openwrt-Passwall/openwrt-passwall)、PassWall 2(https://github.com/Openwrt-Passwall/openwrt-passwall2)
- ShadowSocksR Plus+(https://github.com/fw876/helloworld)
- luci-app-xray(https://github.com/yichya/luci-app-xray)(openwrt-xray(https://github.com/yichya/openwrt-xray))
- Asuswrt-Merlin
- XRAYUI(https://github.com/DanielLavrushin/asuswrt-merlin-xrayui)
- fancyss(https://github.com/hq450/fancyss)
- Windows
- v2rayN(https://github.com/2dust/v2rayN)
- Furious(https://github.com/LorenEteval/Furious)
- Invisible Man - Xray(https://github.com/InvisibleManVPN/InvisibleMan-XRayClient)
- AnyPortal(https://github.com/AnyPortal/AnyPortal)
- GenyConnect(https://github.com/genyleap/GenyConnect)
- Android
- v2rayNG(https://github.com/2dust/v2rayNG)
- X-flutter(https://github.com/XTLS/X-flutter)
- SaeedDev94/Xray(https://github.com/SaeedDev94/Xray)
- SimpleXray(https://github.com/lhear/SimpleXray)
- XrayFA(https://github.com/Q7DF1/XrayFA)
- AnyPortal(https://github.com/AnyPortal/AnyPortal)
- NetProxy-Magisk(https://github.com/Fanju6/NetProxy-Magisk)
- iOS & macOS arm64 & tvOS
- Happ(https://apps.apple.com/app/happ-proxy-utility/id6504287215)| Happ RU(https://apps.apple.com/ru/app/happ-proxy-utility-plus/id6746188973)| Happ tvOS(https://apps.apple.com/us/app/happ-proxy-utility-for-tv/id6748297274)
- Streisand(https://apps.apple.com/app/streisand/id6450534064)
- OneXray(https://github.com/OneXray/OneXray)
- INCY(https://apps.apple.com/en/app/incy/id6756943388)
- macOS arm64 & x64
- Happ(https://apps.apple.com/app/happ-proxy-utility/id6504287215)| Happ RU(https://apps.apple.com/ru/app/happ-proxy-utility-plus/id6746188973)
- V2rayU(https://github.com/yanue/V2rayU)
- V2RayXS(https://github.com/tzmax/V2RayXS)
- Furious(https://github.com/LorenEteval/Furious)
- OneXray(https://github.com/OneXray/OneXray)
- GoXRay(https://github.com/goxray/desktop)
- AnyPortal(https://github.com/AnyPortal/AnyPortal)
- v2rayN(https://github.com/2dust/v2rayN)
- GenyConnect(https://github.com/genyleap/GenyConnect)
- INCY(https://apps.apple.com/en/app/incy/id6756943388)
- Linux
- v2rayA(https://github.com/v2rayA/v2rayA)
- Furious(https://github.com/LorenEteval/Furious)
- GorzRay(https://github.com/ketetefid/GorzRay)
- GoXRay(https://github.com/goxray/desktop)
- AnyPortal(https://github.com/AnyPortal/AnyPortal)
- v2rayN(https://github.com/2dust/v2rayN)
- GenyConnect(https://github.com/genyleap/GenyConnect)
其他支持 VLESS、XTLS、REALITY、XUDP、PLUX… 的软件
- iOS & macOS arm64 & tvOS
- Shadowrocket(https://apps.apple.com/app/shadowrocket/id932747118)
- Loon(https://apps.apple.com/us/app/loon/id1373567447)
- Egern(https://apps.apple.com/us/app/egern/id1616105820)
- Quantumult X(https://apps.apple.com/us/app/quantumult-x/id1443988620)
- Xray 工具
- xray-knife(https://github.com/lilendian0x00/xray-knife)
- xray-checker(https://github.com/kutovoys/xray-checker)
- Xray 封装库
- XTLS/libXray(https://github.com/XTLS/libXray)
- xtls-sdk(https://github.com/remnawave/xtls-sdk)
- xtlsapi(https://github.com/hiddify/xtlsapi)
- AndroidLibXrayLite(https://github.com/2dust/AndroidLibXrayLite)
- Xray-core-python(https://github.com/LorenEteval/Xray-core-python)
- xray-api(https://github.com/XVGuardian/xray-api)
- XrayR(https://github.com/XrayR-project/XrayR)
- XrayR-release(https://github.com/XrayR-project/XrayR-release)
- XrayR-V2Board(https://github.com/missuo/XrayR-V2Board)
- 核心
- Amnezia VPN(https://github.com/amnezia-vpn)
- mihomo(https://github.com/MetaCubeX/mihomo)
- sing-box(https://github.com/SagerNet/sing-box)
贡献
行为准则(https://github.com/XTLS/Xray-core/blob/main/CODE_OF_CONDUCT.md)
向 DeepWiki 提问(https://deepwiki.com/XTLS/Xray-core)
致谢
- Xray-core v1.0.0(https://github.com/XTLS/Xray-core/releases/tag/v1.0.0)是从 v2fly-core 9a03cc5(https://github.com/v2fly/v2ray-core/commit/9a03cc5c98d04cc28320fcee26dbc236b3291256)fork 而来的,在此基础上我们进行了大量的增强和积累,请查看各版本的发布说明(https://github.com/XTLS/Xray-core/releases)。
- 有关 Xray-core(https://github.com/XTLS/Xray-core)中使用的第三方项目,请查看本地或最新的 go.mod(https://github.com/XTLS/Xray-core/blob/main/go.mod)。
一行命令编译
Windows(PowerShell)
$env:CGO_ENABLED=0 go build -o xray.exe -trimpath -buildvcs=false -ldflags="-s -w -buildid=" -v ./main
Linux / macOS
CGO_ENABLED=0 go build -o xray -trimpath -buildvcs=false -ldflags="-s -w -buildid=" -v ./main
可复现发布
请确保使用相同版本的 Go,并记得设置 git 提交 ID(7 字节):
CGO_ENABLED=0 go build -o xray -trimpath -buildvcs=false -gcflags="all=-l=4" -ldflags="-X github.com/xtls/xray-core/core.build=REPLACE -s -w -buildid=" -v ./main
如果您要编译 32 位 MIPS/MIPSLE 目标,请使用以下命令:
CGO_ENABLED=0 go build -o xray -trimpath -buildvcs=false -gcflags="-l=4" -ldflags="-X github.com/xtls/xray-core/core.build=REPLACE -s -w -buildid=" -v ./main
Stargazers 趋势
Stargazers 趋势(https://starchart.cc/XTLS/Xray-core)
相似文章
Lightricks/LTX-2.3
Lightricks 发布了 LTX-2.3,这是一个基于扩散的开放权重音视频基础模型,具有改进的质量和提示遵循性,提供多个检查点,包括蒸馏和 LoRA 变体,可在本地执行。
masterking32/MasterDnsVPN
MasterDnsVPN 是一个开源的科学/研究项目,通过 DNS 查询和响应来隧道传输 TCP 流量,与 DNSTT 和 SlipStream 等同类工具相比,提供了多路径路由、ARQ 可靠性传输以及低协议开销等高级特性。
CrabTrap:用 LLM 做裁判的 HTTP 代理,为生产环境中的 AI Agent 保驾护航
Brex 开源 CrabTrap,一个以 LLM 为裁判的 HTTP 代理,在流量抵达生产服务前对 AI Agent 的请求进行过滤与安全检查。
RLDX-1 技术报告
RLDX-1 是一种用于灵巧操作的多功能机器人策略,采用多流动作 Transformer(Multi-Stream Action Transformer)架构来整合异构模态,在现实世界任务中超越了现有的 VLA 模型。
@AlexJonesax: 如果你在 Mac 上运行 LLM,值得了解的两个开源 MLX 推理服务器:MTPLX (@youssofal) 利用模型自身的…
本文介绍了两个适用于 Mac 的开源 MLX 推理服务器:MTPLX 通过投机解码(无需草稿模型)优化 token 生成速度,而 oMLX 则通过持久化的 KV 缓存提升代码智能体的工作流效率。