Skip to content

Commit 205ad2e

Browse files
committed
Send initial challenge request as 4 byte int
Closes #79
1 parent 6d1de41 commit 205ad2e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

SourceQuery/SourceQuery.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -465,7 +465,7 @@ private function GetChallenge( $Header, $ExpectedResult )
465465
$Header = self::A2S_SERVERQUERY_GETCHALLENGE;
466466
}
467467

468-
$this->Socket->Write( $Header, 0xFFFFFFFF );
468+
$this->Socket->Write( $Header, "\xFF\xFF\xFF\xFF" );
469469
$Buffer = $this->Socket->Read( );
470470

471471
$Type = $Buffer->GetByte( );

0 commit comments

Comments
 (0)