fix error when accessing from localhost

This commit is contained in:
WlodekM
2026-01-08 13:19:55 +02:00
parent ef9f6ba9c7
commit 490c1cc724

View File

@@ -78,6 +78,7 @@ app.use((req, res, next) => {
const geo = geoip.lookup(req.headers['x-forwarded-for']); const geo = geoip.lookup(req.headers['x-forwarded-for']);
console.log(geo); console.log(geo);
if (geo)
if (geo.country !== "US") if (geo.country !== "US")
if (geo.country !== "UA") if (geo.country !== "UA")
if (geo.country !== "PL") { if (geo.country !== "PL") {