From 565180372be9a7868f315ef04123f50d91a077b1 Mon Sep 17 00:00:00 2001 From: Michael Tremer Date: Mon, 8 Jun 2020 18:14:32 +0000 Subject: [PATCH] location: Show ASN when no name is available Signed-off-by: Michael Tremer --- src/templates/location/lookup.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/templates/location/lookup.html b/src/templates/location/lookup.html index 6da92955..f4a2e824 100644 --- a/src/templates/location/lookup.html +++ b/src/templates/location/lookup.html @@ -16,7 +16,7 @@
{{ address.network }}
{{ _("Announced by") }}
-
{{ address.autonomous_system or _("N/A") }}
+
{{ address.autonomous_system or ("AS%s" % address.asn if address.asn else _("N/A")) }}
{% if address.country_code %}
{{ _("Country") }}
-- 2.47.3