mirror of
https://github.com/umami-software/umami.git
synced 2026-02-07 22:27:16 +01:00
Fix issue with country db.
This commit is contained in:
parent
25085cbe10
commit
526ed01d0a
1 changed files with 1 additions and 1 deletions
|
|
@ -64,7 +64,7 @@ export async function getCountry(req, ip) {
|
||||||
|
|
||||||
// Database lookup
|
// Database lookup
|
||||||
if (!lookup) {
|
if (!lookup) {
|
||||||
lookup = await maxmind.open(path.resolve('./public/geo/GeoLite2-Country.mmdb'));
|
lookup = await maxmind.open(path.resolve(__dirname, '../public/geo/GeoLite2-Country.mmdb'));
|
||||||
}
|
}
|
||||||
|
|
||||||
const result = lookup.get(ip);
|
const result = lookup.get(ip);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue