fix check current ip addres
Build and Deploy Docker / build (push) Successful in 1m33s
Build and Deploy Docker / deploy (push) Successful in 41s

This commit is contained in:
2026-06-30 11:22:45 +02:00
parent 8c704c3122
commit b562a98ee2
+1 -1
View File
@@ -29,7 +29,7 @@ curl_close($ch);
if ($serverIp) { if ($serverIp) {
foreach ($toUpdateArray as $toUpdate) { foreach ($toUpdateArray as $toUpdate) {
$toUpdate = trim($toUpdate); $toUpdate = trim($toUpdate);
$currentIp = gethostbyname($toUpdate); $currentIp = trim(shell_exec("dig +short @208.67.222.222 $toUpdate A | head -n1"));
if ($currentIp == $serverIp) { if ($currentIp == $serverIp) {
echo "[$dateUpdate] $toUpdate: same (not update)" . PHP_EOL; echo "[$dateUpdate] $toUpdate: same (not update)" . PHP_EOL;
continue; continue;