Xray, Penetrates Everything. Also the best v2ray-core, with XTLS support. Fully compatible configuration.
Find a file
Aubrey Yang 4894154a5e
Update handler.go
fix(proxy/freedom): prevent crash when passthrough is "origin" or "srcip"

In certain routing scenarios, outbound detour tags like "origin" or "srcip" may be assigned 
to freedom handlers without proper initialization, causing nil pointer dereference during Dial().

This patch adds guard checks to ensure the outbound handler is valid before dialing, and improves 
fallback logic for local address passthrough (e.g., 127.0.0.1) to avoid kernel crashes.

Also ensures `sendThrough` behavior gracefully degrades if loopback or empty DNS response is encountered.
2025-05-31 02:37:59 +09:00
.github Bump actions/github-script from 6 to 7 (#4708) 2025-05-09 10:29:52 -04:00
app Update handler.go 2025-05-31 02:37:59 +09:00
common QUIC sniffer: Fix potential slice panic (#4732) 2025-05-16 12:08:29 +00:00
core v25.5.16 2025-05-16 12:18:34 +00:00
features DNS Host: Removing code that was not being executed and should not be executed. (#4721) 2025-05-15 10:15:03 -04:00
infra Update xray.go 2025-05-21 01:29:59 +09:00
main Chore: Fix tests (#4440) 2025-02-25 13:11:37 +00:00
proxy DNS: Fix some bugs; Refactors; Optimizations (#4659) 2025-04-29 08:39:57 +00:00
testing DNS: Support returning upstream TTL to clients (#4526) 2025-03-24 13:33:56 +00:00
transport REALITY protocol: Remove ChaCha20-Poly1305 support for REALITY's session id auth 2025-05-16 07:29:05 +00:00
.gitignore Chore: Optimize .gitignore (#4564) 2025-03-29 13:46:26 +00:00
CODE_OF_CONDUCT.md Create CODE_OF_CONDUCT.md (#941) (#749) 2021-10-22 12:38:40 +08:00
go.mod Update reality to 20250527 2025-05-26 21:55:30 -04:00
go.sum Update reality to 20250527 2025-05-26 21:55:30 -04:00
LICENSE v1.0.0 2020-11-25 19:01:53 +08:00
README.md README.md: Rename FoXray to OneXray in GUI Clients (#4754) 2025-05-26 01:31:19 +00:00

Project X

Project X originates from XTLS protocol, providing a set of network tools such as Xray-core and REALITY.

README is open, so feel free to submit your project here.

Donation & NFTs

License

Mozilla Public License Version 2.0

Documentation

Project X Official Website

Telegram

Project X

Project X Channel

Project VLESS (Русский)

Project XHTTP (Persian)

Installation

Usage

GUI Clients

Others that support VLESS, XTLS, REALITY, XUDP, PLUX...

Contributing

Code of Conduct

Credits

One-line Compilation

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

Reproducible Releases

Make sure that you are using the same Go version, and remember to set the git commit id (7 bytes):

CGO_ENABLED=0 go build -o xray -trimpath -buildvcs=false -ldflags="-X github.com/xtls/xray-core/core.build=REPLACE -s -w -buildid=" -v ./main

Stargazers over time

Stargazers over time