From 820445b0ca48efbe0af0b04cf83fc184f3af59a9 Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Wed, 20 Jul 2022 15:52:29 +0200 Subject: ddns.php: update colocation status --- ddns.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ddns.php b/ddns.php index 551dfe9..1f652d4 100644 --- a/ddns.php +++ b/ddns.php @@ -238,3 +238,6 @@ file_put_contents('/srv/http/vhosts/eckner.net/ddns/log', $logContent, FILE_APPEND | LOCK_EX); print "updated ips for domain \"" . $domain . ".ddns.eckner.net\": " . implode(", ", $ips) . "\n"; + + $handle = fopen('https://colocation.eckner.net/update.php?key=' . trim(file('/srv/http/vhosts/eckner.net/ddns/colocation-token')) . '&running=1&machine=' . $domain, 'r'); + fclose($handle); -- cgit v1.2.3-70-g09d2