mirror of
https://github.com/YGGverse/hl-php.git
synced 2026-03-31 17:15:39 +00:00
fix ipv6/xash3d-master compatibility; update method name
This commit is contained in:
parent
4f8fffed17
commit
b1fce6a668
1 changed files with 3 additions and 3 deletions
|
|
@ -35,10 +35,10 @@ class Master
|
|||
}
|
||||
}
|
||||
|
||||
public function getServersIPv6(
|
||||
public function getServers(
|
||||
int $limit = 100,
|
||||
string $region = "\xFF",
|
||||
string $host = "0.0.0.0:0",
|
||||
string $host = "0.0.0.0",
|
||||
int $port = 0,
|
||||
string $gamedir = "valve"
|
||||
): ?array
|
||||
|
|
@ -76,7 +76,7 @@ class Master
|
|||
}
|
||||
|
||||
// Filter query
|
||||
if (false === fwrite($socket, "1{$region}{$host}:{$port}\0\gamedir\t{$gamedir}\0"))
|
||||
if (false === fwrite($socket, fwrite($socket, "1{$region}{$host}:{$port}\0\\gamedir\\{$gamedir}\0")))
|
||||
{
|
||||
$this->_errors[] = _('Could not send socket query');
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue