diff --git a/index.js b/index.js index 2b5de75..aa46412 100644 --- a/index.js +++ b/index.js @@ -78,6 +78,7 @@ app.use((req, res, next) => { const geo = geoip.lookup(req.headers['x-forwarded-for']); console.log(geo); + if (geo) if (geo.country !== "US") if (geo.country !== "UA") if (geo.country !== "PL") {