Skip to content

Commit

Permalink
Fix Error connecting message for Left 4 Dead 2 servers
Browse files Browse the repository at this point in the history
  • Loading branch information
ErikMinekus committed Jul 3, 2021
1 parent a07df02 commit 7985b5c
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion web_upload/includes/CServerInfo.php
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,11 @@ public function getInfo()
$this->raw = $packet;
$ret = array();
$type = $this->_getraw(1);
if($type == self::A2S_SERVERQUERY_GETCHALLENGE_RESPONSE)
{ // Re-send the query with the challenge we received.
$this->raw = $this->_request($socket, self::A2S_INFO . $this->_getraw(4));
$type = $this->_getraw(1);
}
if($type == self::A2S_INFO_RESPONSE)
{ // New protocol for Source and Goldsrc
$this->_getbyte(); // Version
Expand Down Expand Up @@ -445,4 +450,3 @@ private function _skip($c)
$this->raw = substr($this->raw, $c);
}
}

0 comments on commit 7985b5c

Please sign in to comment.