mirror of
https://github.com/umami-software/umami.git
synced 2026-02-04 12:47:13 +01:00
update to GeoLite2-City
This commit is contained in:
parent
eea01b21cf
commit
4351ef37f8
3 changed files with 4 additions and 3 deletions
|
|
@ -68,7 +68,7 @@ export async function getCountry(req, ip) {
|
|||
|
||||
// Database lookup
|
||||
if (!lookup) {
|
||||
lookup = await maxmind.open(path.resolve('node_modules/.geo/GeoLite2-Country.mmdb'));
|
||||
lookup = await maxmind.open(path.resolve('node_modules/.geo/GeoLite2-City.mmdb'));
|
||||
}
|
||||
|
||||
const result = lookup.get(ip);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue