Remove special support for TS server < 3.8.0
This commit is contained in:
parent
9848c096e6
commit
8bcca7d0c1
|
@ -48,13 +48,6 @@ class Auth {
|
||||||
|
|
||||||
$clientIp = (string) $client["connection_client_ip"];
|
$clientIp = (string) $client["connection_client_ip"];
|
||||||
|
|
||||||
// IPv6 support - remove brackets from the beginning and the end of clientIp if there are any
|
|
||||||
// because we will be comparing it to Utils::getClientIp() that does not have them.
|
|
||||||
//
|
|
||||||
// Brackets in IPv6 addresses are no longer returned starting from TeamSpeak server version 3.8.0,
|
|
||||||
// but we want to maintain backwards compatibility
|
|
||||||
$clientIp = trim($clientIp, "[]");
|
|
||||||
|
|
||||||
if ($clientIp === $ip) {
|
if ($clientIp === $ip) {
|
||||||
$ret[$client["client_database_id"]] = (string) $client["client_nickname"];
|
$ret[$client["client_database_id"]] = (string) $client["client_nickname"];
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue