mirror of
https://github.com/XTLS/Xray-core.git
synced 2025-01-19 08:51:45 +03:00
yuhan6665
2d898480be
Vision padding upgrade (#1646)
* Vision server allow multiple blocks of padding * Fix Vision client to support multiple possible padding blocks * Vision padding upgrade - Now we have two types of padding: long (pad to 900-1400) and traditional (0-256) - Long padding is applied to tls handshakes and first (empty) packet - Traditional padding is applied to all beginning (7) packets of the connection (counted two-way) - Since receiver changed its way to unpad buffer in fd6973b3c67a6e5a982734a8c288b56845b69cb9, we can freely extend padding packet length easily in the future - Simplify code * Adjust receiver withinPaddingBuffers Now default withinPaddingBuffers = true to give it a chance to do unpadding * Fix magic numbers for Vision Thanks @H1JK Thanks @RPRX for guidance
Project X
Project X originates from XTLS protocol, provides a set of network tools such as Xray-core.
License
Mozilla Public License Version 2.0
Installation
- Linux Script
- Docker
- One Click
- Magisk
- Homebrew
brew install xray
- (Tap) Repository 0
- (Tap) Repository 1
Contributing
Usage
Xray-examples / VLESS-TCP-XTLS-WHATEVER
GUI Clients
- OpenWrt
- Windows
- v2rayN
- Qv2ray (This project had been archived and currently inactive)
- Netch (NetFilter & TUN/TAP) (This project had been archived and currently inactive)
- Android
- iOS & macOS (with M1 chip)
- macOS (Intel chip & M1 chip)
Credits
This repo relies on the following third-party projects:
- Special thanks:
- In production:
- For testing only:
Compilation
Windows
go build -o xray.exe -trimpath -ldflags "-s -w -buildid=" ./main
Linux / macOS
go build -o xray -trimpath -ldflags "-s -w -buildid=" ./main
Telegram
Stargazers over time
Languages
Go
99.6%
HTML
0.2%
Shell
0.1%