mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2025-12-30 00:53:50 +00:00
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user