mirror of
https://github.com/idanoo/go-mastodon-matrix-webhooks
synced 2025-07-01 19:12:15 +00:00
Fix
This commit is contained in:
parent
a79690870c
commit
16c1ab6cd3
1 changed files with 3 additions and 1 deletions
4
main.go
4
main.go
|
@ -112,7 +112,9 @@ func sendWebhook(msgText string) error {
|
|||
|
||||
// Lookup to country!
|
||||
func ipLookup(ip string) string {
|
||||
log.Printf("Looking up: %s", ip)
|
||||
if IP2LOCATION_FILE == "" {
|
||||
return ""
|
||||
}
|
||||
|
||||
db, err := ip2location.OpenDB(IP2LOCATION_FILE)
|
||||
if err != nil {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue