Skip to content

Commit

Permalink
okay
Browse files Browse the repository at this point in the history
  • Loading branch information
ismaileke committed Aug 3, 2024
1 parent 9078818 commit 9c11bb4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/protocol/OpenConnectionReply1.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ class OpenConnectionReply1 extends OfflineMessage{

public int $serverID;
public bool $serverSecurity;
public int $cookie;
public int|null $cookie;
public int $mtuSize;

public static function create(int $serverId, bool $serverSecurity, int $cookie = null, int $mtuSize) : self{
Expand Down
2 changes: 1 addition & 1 deletion src/protocol/OpenConnectionRequest2.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ protected function encodePayload(PacketSerializer $out) : void{
$this->writeMagic($out);
if (Cookie::$serverHasSecurity) {
$out->putInt($this->cookie);
$out->putBool(0); // Client wrote challenge
$out->putBool(false); // Client wrote challenge
}
$out->putAddress($this->serverAddress);
$out->putShort($this->mtuSize);
Expand Down

0 comments on commit 9c11bb4

Please sign in to comment.