diff --git a/src/protocol/OpenConnectionRequest2.php b/src/protocol/OpenConnectionRequest2.php index 360ed2a..20dd4df 100644 --- a/src/protocol/OpenConnectionRequest2.php +++ b/src/protocol/OpenConnectionRequest2.php @@ -40,7 +40,7 @@ protected function encodePayload(PacketSerializer $out) : void{ protected function decodePayload(PacketSerializer $in) : void{ $this->readMagic($in); - $this->serverSecurity = $in->getByte(); + $this->serverSecurity = $in->getByte() !== 0; if ($this->serverSecurity) { $this->cookie = $in->getInt(); }