Xray-core/proxy/vless/encoding
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 fd6973b3c6, 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
..
addons.go Add XTLS RPRX's Vision (#1235) 2022-10-29 00:51:59 -04:00
addons.pb.go Generate *.pb.go files with protoc v3.21.12 2023-01-30 04:35:30 +00:00
addons.proto v1.1.0 2020-12-04 09:36:16 +08:00
encoding.go Vision padding upgrade (#1646) 2023-02-27 22:14:37 -05:00
encoding_test.go Reformat code 2022-05-18 15:29:01 +08:00
errors.generated.go v1.1.0 2020-12-04 09:36:16 +08:00