diff --git a/cmd/check-ip/main.go b/cmd/check-ip/main.go index 9165b8a..c2d5b10 100644 --- a/cmd/check-ip/main.go +++ b/cmd/check-ip/main.go @@ -134,8 +134,8 @@ func main() { // downloaded via httpcache conditional GETs; otherwise the files are // expected to exist on disk and are polled for out-of-band changes. func geoFetcher(confPath, dir string) dataset.Fetcher { - cityPath := filepath.Join(dir, geoip.CityEdition+".mmdb") - asnPath := filepath.Join(dir, geoip.ASNEdition+".mmdb") + cityPath := filepath.Join(dir, "GeoLite2-City.mmdb") + asnPath := filepath.Join(dir, "GeoLite2-ASN.mmdb") if confPath == "" { for _, p := range geoip.DefaultConfPaths() { if _, err := os.Stat(p); err == nil { diff --git a/net/geoip/databases.go b/net/geoip/databases.go index 4cbf806..2b82237 100644 --- a/net/geoip/databases.go +++ b/net/geoip/databases.go @@ -17,8 +17,8 @@ type Databases struct { // Open opens