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