summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2022-07-20 15:52:29 +0200
committerErich Eckner <git@eckner.net>2022-07-20 15:52:29 +0200
commit820445b0ca48efbe0af0b04cf83fc184f3af59a9 (patch)
tree32057ecbaac4dba01c9094ac257e83297aa6e28d
parent9734dc4d395c550f407c851697396c77f9fad2fc (diff)
downloadddns-820445b0ca48efbe0af0b04cf83fc184f3af59a9.tar.xz
ddns.php: update colocation status
-rw-r--r--ddns.php3
1 files changed, 3 insertions, 0 deletions
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);