From 1d144a16c35f9f1e07aa1d3be0089a9932da0f05 Mon Sep 17 00:00:00 2001 From: casjay Date: Wed, 11 Jun 2025 13:27:30 -0400 Subject: [PATCH] =?UTF-8?q?=F0=9F=97=83=EF=B8=8F=20Committing=20everything?= =?UTF-8?q?=20that=20changed=20=F0=9F=97=83=EF=B8=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit rootfs/opt/echoip/html/index.html --- rootfs/opt/echoip/html/index.html | 147 ++++++------------------------ 1 file changed, 30 insertions(+), 117 deletions(-) diff --git a/rootfs/opt/echoip/html/index.html b/rootfs/opt/echoip/html/index.html index 57fddb3..23b51df 100644 --- a/rootfs/opt/echoip/html/index.html +++ b/rootfs/opt/echoip/html/index.html @@ -10,10 +10,7 @@ /> - + - +

What is my IP address?

{{ .IP }}

-

- The best tool to find your own IP address, and information about - it. -

+

The best tool to find your own IP address, and information about it.

@@ -50,20 +44,14 @@
@@ -175,11 +163,8 @@ {{ if .Country }}

- This information is provided from the GeoLite2 database created by - MaxMind, available from - www.maxmind.com + This information is provided from the GeoLite2 database created by MaxMind, available from + www.maxmind.com

{{ end }} {{ if .Latitude }}
@@ -201,62 +186,17 @@

How do I get this programmatically?

-

- With the widget below you can build your query, and see what the - result will look like. -

+

With the widget below you can build your query, and see what the result will look like.

- - - - - - - + + + + + + + - +
@@ -302,25 +230,19 @@

How do I force IPv4 or IPv6 lookup?

As of 2018-07-25 it's no longer possible to
- force protocol using the v4 and - v6 subdomains.
+ force protocol using the v4 and v6 subdomains.
IPv4 or IPv6 still can be forced by passing the
appropiate flag to your client,
e.g curl -4 or curl -6.

Can I force getting JSON?

- Setting the Accept: application/json
- header works as expected.
- IPV4: curl -q -LSsf -H "Accept: application/json" -4 {{ .Host - }} + Setting the Accept: application/json header works as expected.
+ IPV4: curl -q -LSsf -H "Accept: application/json" -4 {{ .Host }} +
+ IPV6: curl -q -LSsf -H "Accept: application/json" -6 {{ .Host }}
- IPV6: curl -q -LSsf -H "Accept: application/json" -6 {{ .Host - }}

Is automated use of this service permitted?

@@ -329,34 +251,25 @@ The rate limit is in place to ensure a fair service for all.

- Please limit automated requests to 1
- request per minute
. No guarantee is made
- for requests that exceed this limit. They may be
- rate-limited, with a 429 status code, or dropped entirely. + Please limit automated requests to 1 request per minute.
+ No guarantee is made for requests that exceed this limit.
+ They may be rate-limited, with a 429 status code, or dropped entirely.

Can I run my own service?

Yes, the official source code
and documentation is available at
- https://github.com/mpolden/echoip.

+ https://github.com/mpolden/echoip.

My modified code can be found at
- https://github.com/casjaysdevdocker/ifconfig. + https://github.com/casjaysdevdocker/ifconfig.



-
+

hosted on: REPLACE_HOST_NAME
Server IPV4: REPLACE_CURRENT_IP_4
Server IPV6: REPLACE_CURRENT_IP_6

Last updated on: REPLACE_MODIFIED
-

+