mirror of
https://github.com/mat-1/azalea.git
synced 2025-08-02 06:16:04 +00:00
add a todo
This commit is contained in:
parent
fcb5bdf042
commit
453cbc83fd
1 changed files with 2 additions and 0 deletions
|
@ -61,6 +61,8 @@ where
|
|||
// Packet Length
|
||||
let length = read_varint_async(&mut stream).await? as u32;
|
||||
|
||||
// TODO: read individual tcp packets so we don't need this
|
||||
// https://github.com/tokio-rs/tokio/blob/master/examples/print_each_packet.rs
|
||||
let max_length: u32 = 2u32.pow(20u32); // 1mb, arbitrary
|
||||
if length > max_length {
|
||||
// minecraft *probably* won't send packets bigger than this
|
||||
|
|
Loading…
Add table
Reference in a new issue