This commit is contained in:
Pascal Engélibert 2025-11-05 14:17:38 +01:00
commit 90a9196a9d
10 changed files with 1121 additions and 49 deletions

View file

@ -212,7 +212,7 @@ pub fn print_records(records: &Records, print_packets: bool) {
}
}
if print_packets {
let data = if data.len() >= 256 {
let data = if data.len() >= 256 && *direction == Direction::ServerToClient {
&data[0..256]
} else {
data.as_slice()