mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-06 17:59:48 +00:00
Network: Added config to pocketmine.yml to allow changing max MTU size
This might be useful for people with older routers where the connection MTU is actually lower than the router allows.
This commit is contained in:
@ -65,7 +65,14 @@ class RakLibInterface implements ServerInstance, AdvancedSourceInterface{
|
||||
public function __construct(Server $server){
|
||||
$this->server = $server;
|
||||
|
||||
$this->rakLib = new RakLibServer($this->server->getLogger(), \pocketmine\COMPOSER_AUTOLOADER_PATH, $this->server->getPort(), $this->server->getIp() === "" ? "0.0.0.0" : $this->server->getIp(), false);
|
||||
$this->rakLib = new RakLibServer(
|
||||
$this->server->getLogger(),
|
||||
\pocketmine\COMPOSER_AUTOLOADER_PATH,
|
||||
$this->server->getPort(),
|
||||
$this->server->getIp() === "" ? "0.0.0.0" : $this->server->getIp(),
|
||||
false,
|
||||
(int) $this->server->getProperty("network.max-mtu-size", 1492)
|
||||
);
|
||||
$this->interface = new ServerHandler($this->rakLib, $this);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user