Make ipinfo command more similar to geoip

This commit is contained in:
JeDaYoshi 2021-10-17 21:56:24 -04:00
parent 37aa85e601
commit 858b3dbe62
No known key found for this signature in database
GPG key ID: 8060B288C274219D

View file

@ -152,10 +152,10 @@ class Module(ModuleManager.BaseModule):
data = page["ip"]
data += " (%s)" % hostname if hostname else ""
data += " | ISP: %s" % page["org"]
data += " | Location: %s, %s, %s" % (
page["city"], page["region"], page["country"])
data += " (Anycast)" if page.get("anycast", False) == True else ""
data += " | City: %s" % page["city"]
data += " | Region: %s (%s)" % (page["region"], page["country"])
data += " | ISP: %s" % page["org"]
data += " | Lon/Lat: %s" % page["loc"]
data += " | Timezone: %s" % page["timezone"]
event["stdout"].write(data)