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 7c8e5ad commit 673e572Copy full SHA for 673e572
SourceQuery/SourceQuery.php
@@ -200,7 +200,15 @@ public function GetInfo( ) : array
200
throw new SocketException( 'Not connected.', SocketException::NOT_CONNECTED );
201
}
202
203
- $this->Socket->Write( self::A2S_INFO, "Source Engine Query\0" );
+ if( $this->Challenge )
204
+ {
205
+ $this->Socket->Write( self::A2S_INFO, "Source Engine Query\0" . $this->Challenge );
206
+ }
207
+ else
208
209
+ $this->Socket->Write( self::A2S_INFO, "Source Engine Query\0" );
210
211
+
212
$Buffer = $this->Socket->Read( );
213
$Type = $Buffer->GetByte( );
214
$Server = [];
0 commit comments