diff --git a/SourceQuery/SourceQuery.php b/SourceQuery/SourceQuery.php index 7100366..a29d7f3 100644 --- a/SourceQuery/SourceQuery.php +++ b/SourceQuery/SourceQuery.php @@ -200,7 +200,15 @@ throw new SocketException( 'Not connected.', SocketException::NOT_CONNECTED ); } - $this->Socket->Write( self::A2S_INFO, "Source Engine Query\0" ); + if( $this->Challenge ) + { + $this->Socket->Write( self::A2S_INFO, "Source Engine Query\0" . $this->Challenge ); + } + else + { + $this->Socket->Write( self::A2S_INFO, "Source Engine Query\0" ); + } + $Buffer = $this->Socket->Read( ); $Type = $Buffer->GetByte( ); $Server = [];