This commit is contained in:
idanoo 2022-11-20 18:29:46 +13:00
parent a79690870c
commit 16c1ab6cd3
Signed by: idanoo
GPG Key ID: 387387CDBC02F132

View File

@ -112,7 +112,9 @@ func sendWebhook(msgText string) error {
// Lookup to country! // Lookup to country!
func ipLookup(ip string) string { func ipLookup(ip string) string {
log.Printf("Looking up: %s", ip) if IP2LOCATION_FILE == "" {
return ""
}
db, err := ip2location.OpenDB(IP2LOCATION_FILE) db, err := ip2location.OpenDB(IP2LOCATION_FILE)
if err != nil { if err != nil {