Skip to content

Commit 6953b8e

Browse files
committed
Merge pull request #1910 from iAmShorty/stratum-poke
[CHANGE] issue #1905
2 parents 6b181ba + 3c33e1b commit 6953b8e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

public/include/admin_checks.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
// setup some basic stuff for checking - getuid/getpwuid not available on mac/windows
1111
$apache_user = 'unknown';
12-
if (substr_count(strtolower(PHP_OS), 'nix') > 0) {
12+
if (substr_count(strtolower(PHP_OS), 'nix') > 0 || substr_count(strtolower(PHP_OS), 'linux') > 0) {
1313
$apache_user = (function_exists('posix_getuid')) ? posix_getuid() : 'unknown';
1414
$apache_user = (function_exists('posix_getpwuid')) ? posix_getpwuid($apache_user) : $apache_user;
1515
}
@@ -100,7 +100,7 @@
100100
if ($socket !== false) {
101101
$address = @gethostbyname($config['gettingstarted']['stratumurl']);
102102
$result = @socket_connect($socket, $address, $config['gettingstarted']['stratumport']);
103-
if ($result !== 1) {
103+
if ($result !== true) {
104104
$enotice[] = "We tried to poke your Stratum server using config->gettingstarted details but it didn't respond";
105105
}
106106
$close = @socket_close($socket);

0 commit comments

Comments
 (0)