We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fbabd44 commit 7c8e5adCopy full SHA for 7c8e5ad
SourceQuery/SourceQuery.php
@@ -202,10 +202,18 @@ public function GetInfo( ) : array
202
203
$this->Socket->Write( self::A2S_INFO, "Source Engine Query\0" );
204
$Buffer = $this->Socket->Read( );
205
-
206
$Type = $Buffer->GetByte( );
207
$Server = [];
208
+ if( $Type === self::S2A_CHALLENGE )
209
+ {
210
+ $this->Challenge = $Buffer->Get( 4 );
211
+
212
+ $this->Socket->Write( self::A2S_INFO, "Source Engine Query\0" . $this->Challenge );
213
+ $Buffer = $this->Socket->Read( );
214
+ $Type = $Buffer->GetByte( );
215
+ }
216
217
// Old GoldSource protocol, HLTV still uses it
218
if( $Type === self::S2A_INFO_OLD && $this->Socket->Engine === self::GOLDSOURCE )
219
{
0 commit comments