mirror of
https://github.com/bolucat/Archive.git
synced 2025-10-24 08:43:29 +08:00
Update On Tue Apr 30 20:31:49 CEST 2024
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
//! AEAD packet I/O facilities
|
||||
//!
|
||||
//! AEAD protocol is defined in <https://shadowsocks.org/doc/aead.html>.
|
||||
//! AEAD protocol is defined in <https://shadowsocks.org/en/spec/AEAD.html>.
|
||||
//!
|
||||
//! ```plain
|
||||
//! TCP request (before encryption)
|
||||
@@ -305,7 +305,7 @@ impl DecryptedReader {
|
||||
};
|
||||
|
||||
if plen > MAX_PACKET_SIZE {
|
||||
// https://shadowsocks.org/doc/aead.html
|
||||
// https://shadowsocks.org/en/spec/AEAD-Ciphers.html
|
||||
//
|
||||
// AEAD TCP protocol have reserved the higher two bits for future use
|
||||
return Err(ProtocolError::DataTooLong(plen));
|
||||
|
||||
Reference in New Issue
Block a user