mirror of
https://github.com/idanoo/go-mastodon-matrix-webhooks.git
synced 2024-11-22 16:35:17 +00:00
Dont skip
This commit is contained in:
parent
3d4ec5c116
commit
a79690870c
4
main.go
4
main.go
@ -112,10 +112,6 @@ func sendWebhook(msgText string) error {
|
|||||||
|
|
||||||
// Lookup to country!
|
// Lookup to country!
|
||||||
func ipLookup(ip string) string {
|
func ipLookup(ip string) string {
|
||||||
if IP2LOCATION_FILE == "" {
|
|
||||||
return ""
|
|
||||||
}
|
|
||||||
|
|
||||||
log.Printf("Looking up: %s", ip)
|
log.Printf("Looking up: %s", ip)
|
||||||
|
|
||||||
db, err := ip2location.OpenDB(IP2LOCATION_FILE)
|
db, err := ip2location.OpenDB(IP2LOCATION_FILE)
|
||||||
|
Loading…
Reference in New Issue
Block a user