Update geo lookup

This commit is contained in:
Mike Cao 2021-07-18 23:48:30 -07:00
parent 526ed01d0a
commit 4f38242927

View File

@ -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);