diff --git a/lib/request.js b/lib/request.js index dda9ede2..e5527f7d 100644 --- a/lib/request.js +++ b/lib/request.js @@ -64,7 +64,7 @@ export async function getCountry(req, ip) { // Database lookup if (!lookup) { - lookup = await maxmind.open(path.resolve(__dirname, '../public/geo/GeoLite2-Country.mmdb')); + lookup = await maxmind.open(path.resolve('./public/geo/GeoLite2-Country.mmdb')); } const result = lookup.get(ip);