From 8bcca7d0c1824dbf147df14b0629fabc424b137e Mon Sep 17 00:00:00 2001 From: Wruczek Date: Tue, 6 Oct 2020 04:27:56 +0200 Subject: [PATCH] Remove special support for TS server < 3.8.0 --- src/private/php/Auth.php | 7 ------- 1 file changed, 7 deletions(-) diff --git a/src/private/php/Auth.php b/src/private/php/Auth.php index afd4b00..8df7f9e 100644 --- a/src/private/php/Auth.php +++ b/src/private/php/Auth.php @@ -48,13 +48,6 @@ class Auth { $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) { $ret[$client["client_database_id"]] = (string) $client["client_nickname"]; }