Skip to content

Commit 821d7ad

Browse files
committed
[FIX] isset host
1 parent 3089d07 commit 821d7ad

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

public/include/admin_checks.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,8 @@
101101
$host = @gethostbyname($config['gettingstarted']['stratumurl']);
102102
$port = $config['gettingstarted']['stratumport'];
103103

104-
if (isset($port) and
104+
if (isset($host) and
105+
isset($port) and
105106
($socket=socket_create(AF_INET, SOCK_STREAM, SOL_TCP)) and
106107
(socket_set_option($socket, SOL_SOCKET, SO_SNDTIMEO, array('sec' => 3, 'usec' => 0))) and
107108
(@socket_connect($socket, $host, $port)))

0 commit comments

Comments
 (0)