Update event_socket.php (#4652)

removes potential "Warning: fsockopen(): unable to connect to 127.0.0.1:8021 (Connection refused)"
This commit is contained in:
chansizzle 2019-09-24 16:40:31 -06:00 committed by FusionPBX
parent ecca0a3319
commit d24a4e8e82
1 changed files with 1 additions and 1 deletions

View File

@ -108,7 +108,7 @@ class event_socket {
if ($port == '') { $port = '8021'; }
if ($password == '') { $password = 'ClueCon'; }
$fp = fsockopen($host, $port, $errno, $errdesc, 3);
$fp = @socket_connect($host, $port, $errno, $errdesc, 3);
if (!$fp) {
return false;