From b562a98ee2f22171faa1e7f06ea85fa3f57d5aa2 Mon Sep 17 00:00:00 2001 From: Ryjek Date: Tue, 30 Jun 2026 11:22:45 +0200 Subject: [PATCH] fix check current ip addres --- project/updateip.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/project/updateip.php b/project/updateip.php index 02a735f..bc30ae9 100644 --- a/project/updateip.php +++ b/project/updateip.php @@ -29,7 +29,7 @@ curl_close($ch); if ($serverIp) { foreach ($toUpdateArray as $toUpdate) { $toUpdate = trim($toUpdate); - $currentIp = gethostbyname($toUpdate); + $currentIp = trim(shell_exec("dig +short @208.67.222.222 $toUpdate A | head -n1")); if ($currentIp == $serverIp) { echo "[$dateUpdate] $toUpdate: same (not update)" . PHP_EOL; continue;