From f849c09969320f234a4e16c58632c2232bb1e7ff Mon Sep 17 00:00:00 2001 From: rangertaha Date: Mon, 10 Sep 2018 23:39:48 -0400 Subject: [PATCH] Added geoip function --- extra.go | 6 +++--- geolite2.go | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/extra.go b/extra.go index 7fc9f70d..ec64bb38 100644 --- a/extra.go +++ b/extra.go @@ -81,7 +81,7 @@ var geoIPLookup = Extra{ Name: "GeoIP Lookup", Description: "Looks up geopgraphic information via IP address", Exec: geoIPLookupFunc, - Headers: []string{"GEO"}, + Headers: []string{"IPv4", "IPv6", "GEO"}, } var idnaLookup = Extra{ @@ -138,7 +138,7 @@ func init() { FRegister("301", redirectLookup) //FRegister("WHOIS", whoisLookup) - //FRegister("GEO", geoIPLookup) + FRegister("GEO", geoIPLookup) FRegister("ALL", mxLookup, @@ -152,7 +152,7 @@ func init() { redirectLookup, //whoisLookup, - //geoIPLookup, + geoIPLookup, ) } diff --git a/geolite2.go b/geolite2.go index d0d46b32..46c5b87f 100644 --- a/geolite2.go +++ b/geolite2.go @@ -3,7 +3,7 @@ // GeoLite2-Country.mmdb // DO NOT EDIT! -package main +package urlinsane import ( "bytes"