Looking up logs

This commit is contained in:
idanoo 2022-11-20 18:26:24 +13:00
parent 66468545ba
commit 3d4ec5c116
Signed by: idanoo
GPG Key ID: 387387CDBC02F132

View File

@ -116,15 +116,17 @@ func ipLookup(ip string) string {
return ""
}
log.Printf("Looking up: %s", ip)
db, err := ip2location.OpenDB(IP2LOCATION_FILE)
if err != nil {
fmt.Print(err)
log.Print(err)
return ""
}
results, err := db.Get_all(ip)
if err != nil {
fmt.Print(err)
log.Print(err)
return ""
}