mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-05-16 18:59:00 +00:00
Network: silence unhandled packet message on bad raw packet
This commit is contained in:
parent
a9c76c2424
commit
c98801402b
@ -240,6 +240,7 @@ class Network{
|
||||
try{
|
||||
$handled = $handler->handle($interface, $address, $port, $packet);
|
||||
}catch(BadPacketException $e){
|
||||
$handled = true;
|
||||
$this->logger->error("Bad raw packet from /$address:$port: " . $e->getMessage());
|
||||
$this->blockAddress($address, 600);
|
||||
break;
|
||||
|
Loading…
x
Reference in New Issue
Block a user