From fa21bcfa43c5bb51b3ba66fe1815ace34f46dcb5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20K=C3=BCthe?= Date: Sat, 23 Sep 2023 17:11:48 +0200 Subject: [PATCH] Replace dns with ip addresses This ensures that people without a working DNS but with working IP connections to the dn42 can use the JavaScript page. --- wwwroot/assets/js/myip.js | 4 ++-- wwwroot/index.html | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/wwwroot/assets/js/myip.js b/wwwroot/assets/js/myip.js index 3b75ec6..745bf8b 100644 --- a/wwwroot/assets/js/myip.js +++ b/wwwroot/assets/js/myip.js @@ -14,7 +14,7 @@ function getdefault() { } function getipv4() { - fetch('http://v4.myip.dn42/api') + fetch('http://172.20.0.81/api') .then(function (response) { return response.json(); }) @@ -26,7 +26,7 @@ function getipv4() { } function getipv6() { - fetch('http://v6.myip.dn42/api') + fetch('http://[fd42:d42:d42:81::1]/api') .then(function (response) { return response.json(); }) diff --git a/wwwroot/index.html b/wwwroot/index.html index 328a97c..f66fa53 100644 --- a/wwwroot/index.html +++ b/wwwroot/index.html @@ -32,9 +32,9 @@

Remote Node

- The node's ip address is fetching from api.
- The node's ipv4 address is fetching from api.
- The node's ipv6 address is fetching from api.
+ The node's ip address is fetching from api.
+ The node's ipv4 address is fetching from api.
+ The node's ipv6 address is fetching from api.
You have reached the myip.dn42 service of ASfetching from api. The server is located in fetching from api . The server has the ID/name fetching from api.