mirror of
https://codeberg.org/slatian/service.echoip-slatecave.git
synced 2025-07-16 22:13:30 +02:00
Added an opt-in to looking up own IP-Address
This commit is contained in:
@ -17,8 +17,8 @@
|
||||
<a href="{{ self::dig_link(extra=extra, name=name) }}">{% if prefix %}{{ prefix }} {% endif %}{% if fqdn or name=="." %}{{ name }}{% else %}{{ name | trim_end_matches(pat=".") }}{% endif %}</a>
|
||||
{% endmacro dig %}
|
||||
|
||||
{% macro ip(extra, ip, text=false) %}
|
||||
<a href="{{ extra.base_url }}/ip/{{ ip | urlencode_strict | replace(from="%2e", to=".") | replace(from="%3a", to=":") | safe }}"><code>{% if text %}{{ text }}{% else %}{{ ip }}{% endif %}</code></a>
|
||||
{% macro ip(extra, ip, text=false, with_self_lookup=false) %}
|
||||
<a href="{{ extra.base_url }}/ip/{{ ip | urlencode_strict | replace(from="%2e", to=".") | replace(from="%3a", to=":") | safe }}{% if with_self_lookup %}?dns_self_lookup=true{% endif %}"><code>{% if text %}{{ text }}{% else %}{{ ip }}{% endif %}</code></a>
|
||||
{% endmacro dig %}
|
||||
|
||||
{% macro breadcrumb_domain(extra, name) %}
|
||||
|
@ -18,6 +18,9 @@
|
||||
{% if r.hostname %}
|
||||
<dt>Hostname</dt>
|
||||
<dd>{{ helper::dig(extra=extra, name=r.hostname) }}</dd>
|
||||
{% elif r.reverse_dns_disabled_for_privacy %}
|
||||
<dt>Hostname</dt>
|
||||
<dd>Lookup disabled by default: {{ helper::ip(ip=r.address, with_self_lookup=true)}}</dd>
|
||||
{% endif %}
|
||||
{% if r.asn %}
|
||||
<dt><abbr="Autonomous System Number">ASN</abbr></dt>
|
||||
|
@ -13,12 +13,19 @@
|
||||
* Type of Address: {{ helper::ip_info(ip_info=r.ip_info) }}
|
||||
{% if r.hostname -%}
|
||||
* Hostname: {{ r.hostname }}
|
||||
{%- elif r.reverse_dns_disabled_for_privacy %}
|
||||
* Hostname: Lookup disabled by default
|
||||
{%- endif %}
|
||||
{% if r.asn -%}
|
||||
* ASN: AS{{ r.asn.asn }}
|
||||
* AS Name: {{r.asn.name}}
|
||||
{%- endif -%}
|
||||
|
||||
{%- if r.reverse_dns_disabled_for_privacy %}
|
||||
|
||||
=> /ip/{{ data.result.address }}?dns_self_lookup=true Do a reverse DNS lookup
|
||||
{% endif %}
|
||||
|
||||
{%- if r.location %}
|
||||
|
||||
## Geolocation
|
||||
|
Reference in New Issue
Block a user