Xray-core/proxy
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
..
blackhole Generate *.pb.go files with protoc v3.21.12 2023-01-30 04:35:30 +00:00
dns Generate *.pb.go files with protoc v3.21.12 2023-01-30 04:35:30 +00:00
dokodemo Generate *.pb.go files with protoc v3.21.12 2023-01-30 04:35:30 +00:00
freedom Generate *.pb.go files with protoc v3.21.12 2023-01-30 04:35:30 +00:00
http Generate *.pb.go files with protoc v3.21.12 2023-01-30 04:35:30 +00:00
loopback Generate *.pb.go files with protoc v3.21.12 2023-01-30 04:35:30 +00:00
mtproto Generate *.pb.go files with protoc v3.21.12 2023-01-30 04:35:30 +00:00
shadowsocks Generate *.pb.go files with protoc v3.21.12 2023-01-30 04:35:30 +00:00
shadowsocks_2022 Generate *.pb.go files with protoc v3.21.12 2023-01-30 04:35:30 +00:00
socks Generate *.pb.go files with protoc v3.21.12 2023-01-30 04:35:30 +00:00
trojan THE NEXT FUTURE becomes THE REALITY NOW 2023-02-15 16:07:12 +00:00
vless Vision padding upgrade (#1646) 2023-02-27 22:14:37 -05:00
vmess Generate *.pb.go files with protoc v3.21.12 2023-01-30 04:35:30 +00:00
wireguard Generate *.pb.go files with protoc v3.21.12 2023-01-30 04:35:30 +00:00
proxy.go Fix some tests and format code (#830) 2021-12-14 19:28:47 -05:00