mirror of
https://git.dn42.dev/lare/myip.dn42.git
synced 2024-10-24 03:11:33 +02:00
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:
parent
cf815240fe
commit
fa21bcfa43
2 changed files with 5 additions and 5 deletions
|
@ -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();
|
||||
})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue