From 9645308b9699b065051ed60813ec0527fdfe1d20 Mon Sep 17 00:00:00 2001 From: Jordan Date: Wed, 22 Nov 2023 10:25:51 -0700 Subject: asn: include country code in JSON response --- asn.py | 1 + 1 file changed, 1 insertion(+) diff --git a/asn.py b/asn.py index 7d69c95..fb0f5a1 100755 --- a/asn.py +++ b/asn.py @@ -92,6 +92,7 @@ class HTTPListener(Common): res = OrderedDict() res["host"] = data[0] res["hostname"] = socket.getfqdn(data[0]) + res["country"] = data[2] res["org"] = f"AS{data[1]} {data[3]}" res["announcement"] = data[4] -- cgit v1.2.3-54-g00ecf