Improved internal Client IDs

This commit is contained in:
Shoghi Cervantes Pueyo 2013-03-30 21:09:12 +01:00
parent f7a12b09f7
commit 7312c57123
2 changed files with 2 additions and 2 deletions

View File

@ -156,7 +156,7 @@ class Player{
} }
if($time > $this->timeout){ if($time > $this->timeout){
$this->close("timeout"); $this->close("timeout");
}else{ }else{
if(!empty($this->queue)){ if(!empty($this->queue)){
$cnt = 0; $cnt = 0;
$maxtime = $time + 0.025; $maxtime = $time + 0.025;

View File

@ -511,7 +511,7 @@ class PocketMinecraftServer{
} }
public function clientID($ip, $port){ public function clientID($ip, $port){
return md5($ip . $port, true); return md5($ip . $port, true) ^ sha1($port . $ip, true);
} }
public function packetHandler($packet){ public function packetHandler($packet){