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
2023-02-27 22:14:37 -05:00
2023-02-24 12:41:27 -05:00
2023-02-02 05:50:21 +00:00
2023-02-04 21:27:13 +08:00
2022-05-18 15:29:01 +08:00
2023-02-27 22:14:37 -05:00
2020-11-25 19:01:53 +08:00
2023-02-02 05:50:21 +00:00

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

Contributing

Code Of Conduct

Usage

Xray-examples / VLESS-TCP-XTLS-WHATEVER

GUI Clients

Credits

This repo relies on the following third-party projects:

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

Project X

Project X Channel

Stargazers over time

Stargazers over time

Description
Languages
Go 99.6%
HTML 0.2%
Shell 0.1%