/web/acc/admin/network.php |
---|
401,7 → 401,10 |
$internet_connected = InternetTest(); |
if ($internet_connected) { |
$internet_publicIP = file_get_contents('http://ipecho.net/plain'); |
$ch = curl_init('https://api.ipify.org/'); |
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); |
$internet_publicIP = curl_exec($ch); |
curl_close($ch); |
} else { |
$internet_publicIP = '-.-.-.-'; |
} |