From 0f1d894d36e91094126e7e1d014f293209e608e1 Mon Sep 17 00:00:00 2001 From: NetworkCats Date: Wed, 4 Mar 2026 03:41:23 +0800 Subject: [PATCH] fix: hide empty IP info fields in HTML output --- templates/index.html | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/templates/index.html b/templates/index.html index 867c578..164a65c 100644 --- a/templates/index.html +++ b/templates/index.html @@ -32,22 +32,30 @@ + {% if !asn.is_empty() %} + {% endif %} + {% if !org.is_empty() %} + {% endif %} + {% if !country.is_empty() %} + {% endif %} + {% if !city.is_empty() %} + {% endif %}
ASN {{ asn }}
Org {{ org }}
Country {{ country }}
City {{ city }}
Proxy {% if is_proxy %}Yes{% else %}No{% endif %}