mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-08 10:53:05 +00:00
Add network-wide API to filter raw packets by regex, stricter validation for Query
This commit is contained in:
@ -195,6 +195,12 @@ class Network{
|
||||
}
|
||||
}
|
||||
|
||||
public function addRawPacketFilter(string $regex) : void{
|
||||
foreach($this->advancedInterfaces as $interface){
|
||||
$interface->addRawPacketFilter($regex);
|
||||
}
|
||||
}
|
||||
|
||||
public function scheduleSessionTick(NetworkSession $session) : void{
|
||||
$this->updateSessions[spl_object_hash($session)] = $session;
|
||||
}
|
||||
|
Reference in New Issue
Block a user