use OS specific ping (CLI/socket)

This commit is contained in:
wienfuchs 2020-05-25 13:23:26 +02:00
parent 8890a42907
commit d381e60f2c
No known key found for this signature in database
GPG Key ID: B095DFF49268F245
1 changed files with 1 additions and 1 deletions

View File

@ -195,7 +195,7 @@ class StatusUpdater
$socket = socket_create(AF_INET, SOCK_RAW, 1);
socket_set_option($socket, SOL_SOCKET, SO_RCVTIMEO, array('sec' => 10, 'usec' => 0));
socket_connect($socket, $this->server['ip'], null);
socket_connect($socket, $serverIp, null);
socket_send($socket, $package, strLen($package), 0);
if (socket_read($socket, 255)) {