Allow paddings before handshake; CTR 128->256; Fix panic

https://github.com/XTLS/Xray-core/pull/4952#issuecomment-3187832651
This commit is contained in:
RPRX
2025-08-14 10:28:17 +00:00
committed by GitHub
parent 7f778a4e2f
commit 2807ee432a
4 changed files with 59 additions and 65 deletions

View File

@@ -18,7 +18,7 @@ type XorConn struct {
}
func NewXorConn(conn net.Conn, key []byte) *XorConn {
return &XorConn{Conn: conn, key: key[:16]}
return &XorConn{Conn: conn, key: key}
//chacha20.NewUnauthenticatedCipher()
}