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.
This commit is contained in:
Marek Küthe 2023-09-23 17:11:48 +02:00
parent cf815240fe
commit fa21bcfa43
No known key found for this signature in database
GPG key ID: 7E869146699108C7
2 changed files with 5 additions and 5 deletions

View file

@ -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();
})