mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-22 04:29:43 +00:00
mtu size limits added
This commit is contained in:
parent
0eb5e0ea7d
commit
c408b622eb
1 changed files with 4 additions and 1 deletions
|
|
@ -592,7 +592,10 @@ class PocketMinecraftServer{
|
||||||
if($this->invisible === true){
|
if($this->invisible === true){
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if($packet->mtuSize > 2048) $packet->mtuSize = 2048;
|
||||||
|
if($packet->mtuSize <= 512) $packet->mtuSize = 512;
|
||||||
|
|
||||||
$this->clients[$CID] = $c = new Player($packet->clientID, $packet->ip, $packet->port, $packet->mtuSize); //New Session!
|
$this->clients[$CID] = $c = new Player($packet->clientID, $packet->ip, $packet->port, $packet->mtuSize); //New Session!
|
||||||
$pk = new RakNetPacket(RakNetInfo::OPEN_CONNECTION_REPLY_2);
|
$pk = new RakNetPacket(RakNetInfo::OPEN_CONNECTION_REPLY_2);
|
||||||
$pk->serverID = $this->serverID;
|
$pk->serverID = $this->serverID;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue