mirror of
https://github.com/umami-software/umami.git
synced 2026-02-04 04:37:11 +01:00
Try reverting to country database.
This commit is contained in:
parent
33bf2ccb5e
commit
23d02e5aac
3 changed files with 2 additions and 9 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue