Try reverting to country database.
This commit is contained in:
1 parent
33bf2ccb5e
commit
23d02e5aac
3 files changed
+2
-9
No files matched your search
+1
-1
@@ -63,7 +63,7 @@ export async function getLocation(ip) {
|
||||
|
||||
// Database lookup
|
||||
if (!lookup) {
|
||||
lookup = await maxmind.open(path.resolve('node_modules/.geo/GeoLite2-City.mmdb'));
|
||||
lookup = await maxmind.open(path.resolve('node_modules/.geo/GeoLite2-Country.mmdb'));
|
||||
}
|
||||
|
||||
const result = lookup.get(ip);
|
||||
|
||||
Reference in new issue
Block a user