mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-06-07 12:18:46 +00:00
Improved internal Client IDs
This commit is contained in:
parent
f7a12b09f7
commit
7312c57123
@ -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;
|
||||||
|
@ -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){
|
||||||
|
Loading…
x
Reference in New Issue
Block a user