Skip to content

Commit

Permalink
Update OpenConnectionRequest2.php
Browse files Browse the repository at this point in the history
  • Loading branch information
ismaileke authored Jul 28, 2024
1 parent 963c533 commit c22a7d1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/protocol/OpenConnectionRequest2.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
Expand Down

0 comments on commit c22a7d1

Please sign in to comment.