1
0
Fork 0
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:
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
wwwroot

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

View file

@ -32,9 +32,9 @@
</div>
<div>
<h2>Remote Node</h2>
The node's ip address is <span id="serverdefault">fetching from <a href="/api">api</a></span>. <br>
The node's ipv4 address is <span id="serveripv4">fetching from <a href="http://v4.myip.dn42/api">api</a></span>.<br>
The node's ipv6 address is <span id="serveripv6">fetching from <a href="http://v6.myip.dn42/api">api</a></span>.<br>
The node's ip address is <span id="serverdefault">fetching from <a href="/api">api</a></span>.<br>
The node's ipv4 address is <span id="serveripv4">fetching from <a href="http://172.20.0.81/api">api</a></span>.<br>
The node's ipv6 address is <span id="serveripv6">fetching from <a href="http://[fd42:d42:d42:81::1]/api">api</a></span>.<br>
You have reached the myip.dn42 service of AS<span id="node_as">fetching from <a href="/api">api</a></span>. The server is located in <span id="node_location">fetching from <a href="/api">api</a></span> . The server has the ID/name <code id="node_id">fetching from <a href="/api">api</a></code>.
</div>
</main>