mirror of
https://github.com/YGGverse/hl-php.git
synced 2026-04-01 17:45:28 +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,
|
int $limit = 100,
|
||||||
string $region = "\xFF",
|
string $region = "\xFF",
|
||||||
string $host = "0.0.0.0:0",
|
string $host = "0.0.0.0",
|
||||||
int $port = 0,
|
int $port = 0,
|
||||||
string $gamedir = "valve"
|
string $gamedir = "valve"
|
||||||
): ?array
|
): ?array
|
||||||
|
|
@ -76,7 +76,7 @@ class Master
|
||||||
}
|
}
|
||||||
|
|
||||||
// Filter query
|
// 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');
|
$this->_errors[] = _('Could not send socket query');
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue