Surpress getaddrinfo failed warning (it's harmless and temporary)
This commit is contained in:
parent
6e77606d7e
commit
653793682a
@ -382,7 +382,7 @@ class TeamSpeakPlugin implements CallbackListener, CommandListener, ManialinkPag
|
|||||||
|
|
||||||
$host = ($queryhost != '') ? $queryhost : $host;
|
$host = ($queryhost != '') ? $queryhost : $host;
|
||||||
|
|
||||||
$socket = fsockopen($host, $this->maniaControl->settingManager->getSetting($this, self::TEAMSPEAK_QUERYPORT), $errno, $errstr, 2);
|
$socket = fsockopen(@$host, $this->maniaControl->settingManager->getSetting($this, self::TEAMSPEAK_QUERYPORT), $errno, $errstr, 2);
|
||||||
if ($socket) {
|
if ($socket) {
|
||||||
socket_set_timeout($socket, 2);
|
socket_set_timeout($socket, 2);
|
||||||
$is_ts3 = trim(fgets($socket)) == 'TS3';
|
$is_ts3 = trim(fgets($socket)) == 'TS3';
|
||||||
|
Loading…
Reference in New Issue
Block a user