Go to file
soroush 7ed6b28b2e fix: Fix Sush protocol test failures
- Fix slice bounds error in Frame.Unmarshal by adding proper length checks
- Update magic number from 0x5246 (RF) to 0x5355 (SU) in tests
- Enhance IsSushHandshakeDetection to validate both magic number and version
- Fix frame encryption/decryption by maintaining consistent Length field
- Resolve TestFrameSizeValidation panic with proper bounds checking
- All 17 tests now pass successfully

Fixes:
* TestFrameSizeValidation: Added length validation before slice operations
* TestSushHandshakeDetection: Updated test cases for new SU magic number
* TestFrameEncryption: Fixed AAD consistency between encrypt/decrypt
* Protocol version validation in handshake detection

Test Results:  All tests passing (17/17)
2025-09-13 22:08:20 +03:30
.github Workflows: Fix github.ref_name sometimes is empty when building Docker images (#4937) 2025-07-25 14:47:12 +00:00
app Chore: Three small fixes (#4922) 2025-07-23 12:53:37 +00:00
common Reverse: portal-worker should not be closed before making sure there is at least one other active worker (#4869) 2025-07-23 10:09:17 +00:00
core v25.7.26 2025-07-26 09:07:56 +00:00
features DNS hosts: Support returning RCode (#4681) 2025-07-23 10:11:43 +00:00
infra TLS ECH client: Add `echForceQuery` config (#4947) 2025-08-01 11:25:15 +00:00
main TLS client & server: Support Encrypted Client Hello (ECH) (#3813) 2025-07-26 08:47:27 +00:00
proxy fix: Fix Sush protocol test failures 2025-09-13 22:08:20 +03:30
testing Tests: Real fix for TestCommanderListHandlers (#4792) 2025-06-08 04:47:04 +00:00
transport TLS ECH client: Add `echForceQuery` config (#4947) 2025-08-01 11:25:15 +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
LICENSE v1.0.0 2020-11-25 19:01:53 +08:00
README.md Update readme 2025-07-27 19:02:27 -04:00
go.mod TLS client & server: Support Encrypted Client Hello (ECH) (#3813) 2025-07-26 08:47:27 +00:00
go.sum TLS client & server: Support Encrypted Client Hello (ECH) (#3813) 2025-07-26 08:47:27 +00:00

README.md

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

Collect a Project X NFT to support the development of Project X!

Project X NFT

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

Ask DeepWiki

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