added error reasons to invalid packets

This commit is contained in:
DJMrTV 2025-01-21 20:16:09 +01:00
commit fd77632cd7

View file

@ -50,7 +50,7 @@ impl Router {
let packet = match PRUDPPacket::new(&mut stream){
Ok(p) => p,
Err(e) => {
error!("Somebody({}) is fucking with the servers or their connection is bad", addr);
error!("Somebody({}) is fucking with the servers or their connection is bad (reason: {})", addr, e);
break;
},
};