From 490c1cc724ae5c56d789ec09882823fb17ff8c924a74b951077f058af6dff2ac Mon Sep 17 00:00:00 2001 From: WlodekM Date: Thu, 8 Jan 2026 13:19:55 +0200 Subject: [PATCH] fix error when accessing from localhost --- index.js | 1 + 1 file changed, 1 insertion(+) 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") {