Xray-core/proxy/vless/inbound
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
..
config.go Removal: confonly 2020-12-11 13:05:29 +08:00
config.pb.go Generate *.pb.go files with protoc v3.21.12 2023-01-30 04:35:30 +00:00
config.proto Add SNI shunt support for VLESS (#141) 2021-01-13 15:13:51 +00:00
errors.generated.go v1.1.0 2020-12-04 09:36:16 +08:00
inbound.go Vision padding upgrade (#1646) 2023-02-27 22:14:37 -05:00