Moved geo database location.
This commit is contained in:
1 parent
48dc02c2d4
commit
c37554214d
2 files changed
+2
-2
No files matched your search
+1
-1
@@ -68,7 +68,7 @@ export async function getCountry(req, ip) {
|
||||
|
||||
// Database lookup
|
||||
if (!lookup) {
|
||||
lookup = await maxmind.open(path.resolve('./public/geo/GeoLite2-Country.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