Packet limit

Discussion in 'Development' started by PocketMineSVMaker, Jul 30, 2020 at 7:28 PM.

  1. PocketMineSVMaker

    PocketMineSVMaker Silverfish

    Messages:
    20
    guys, how can i change packet limit per one ip address? i use waterdog and it logs player on pocketmine with 127.0.0.1 and all player on server are with 127.0.0.1. when server reach 26 player, raklib block 127.0.0.1 for 300 seconds. what i must do? change pocket limit or ...? help me please
     
  2. GamakCZ

    GamakCZ Zombie Pigman

    Messages:
    522
    GitHub:
    GamakCZ
    PHP:
    public function onEnable() {
            foreach (
    $this->getServer()->getNetwork()->getInterfaces() as $interface) {
                if(
    $interface instanceof RakLibInterface) {
                    
    $interface->setPacketLimit(PHP_INT_MAX);
                    break;
                }
            }
    }
     
    GodWeedZao and Primus like this.

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.