Skip to content

Commit

Permalink
Temporarily removed auto-banning of unrecognized clients
Browse files Browse the repository at this point in the history
  • Loading branch information
Lem()nTea_ committed Mar 14, 2015
1 parent 32bbaa9 commit 73efbb7
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion plugin/src/ifteam/CustomPacket/SocketInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,11 @@ public function handlePacket(){
$player = $this->server->getPlayerExact(self::$ipCache[$packet->address]['username']);
}
if($player === null){
/*
$this->server->getLogger()->warning("[CustomPacket] Invalid packet from unconnected client $packet->address");
$packet->printDump();
*/ //TODO: Add option for auto-banning unrecognized clients

/*
$this->server->getLogger()->notice("[CustomPacket] Blocking address $packet->address for ".self::BLOCK_TIME_SECONDS." seconds");
CPAPI::blockAddress($packet->address, (int) self::BLOCK_TIME_SECONDS);
Expand Down Expand Up @@ -103,4 +106,4 @@ public function readInternalQueue(){
return $this->internalThreaded->shift();
}

}
}

0 comments on commit 73efbb7

Please sign in to comment.