debug messages added
This commit is contained in:
parent
6d2e797b61
commit
daaf52cca7
1 changed files with 2 additions and 0 deletions
|
@ -176,9 +176,11 @@ fn main() -> std::io::Result<()> {
|
|||
// Just do the very least of plausibility checks
|
||||
if number_of_bytes < 2 {
|
||||
// Abort if not at least 2 bytes have been received
|
||||
debug!("Dropping unknown packet (too small)");
|
||||
continue;
|
||||
} else if (buf[0] >> 6) != 1u8 {
|
||||
// Abort if protocol version is not "1"
|
||||
debug!("Dropping unknown packet (version != 1)");
|
||||
continue;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue