mirror of
https://github.com/zhigang1992/umami.git
synced 2026-04-30 21:52:07 +08:00
Update path.
This commit is contained in:
@@ -64,7 +64,7 @@ export async function getCountry(req, ip) {
|
||||
|
||||
// Database lookup
|
||||
const lookup = await maxmind.open(
|
||||
path.resolve(serverRuntimeConfig.PROJECT_ROOT, 'geo/GeoLite2-Country.mmdb'),
|
||||
path.resolve(serverRuntimeConfig.PROJECT_ROOT, 'public/geo/GeoLite2-Country.mmdb'),
|
||||
);
|
||||
|
||||
const result = lookup.get(ip);
|
||||
|
||||
Reference in New Issue
Block a user