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:
parent
ecca0a3319
commit
d24a4e8e82
|
|
@ -108,7 +108,7 @@ class event_socket {
|
||||||
if ($port == '') { $port = '8021'; }
|
if ($port == '') { $port = '8021'; }
|
||||||
if ($password == '') { $password = 'ClueCon'; }
|
if ($password == '') { $password = 'ClueCon'; }
|
||||||
|
|
||||||
$fp = fsockopen($host, $port, $errno, $errdesc, 3);
|
$fp = @socket_connect($host, $port, $errno, $errdesc, 3);
|
||||||
|
|
||||||
if (!$fp) {
|
if (!$fp) {
|
||||||
return false;
|
return false;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue