Change default to return self Public IP

This commit is contained in:
2021-11-16 22:56:02 -06:00
parent cc439eb7d4
commit cee1c30c63
3 changed files with 17 additions and 8 deletions

View File

@@ -14,7 +14,7 @@ func main() {
utils.ParseFlags(&ip, &properties, &detail)
// Use the IP-API to lookup the IP address
data := ipapi.Lookup(ip)
data := ipapi.Lookup(&ip, &properties)
// Format the data to a string
result := ipapi.GetProperties(data, properties, detail)