diff --git a/index.js b/index.js index cf6651b..6599e3a 100644 --- a/index.js +++ b/index.js @@ -11,7 +11,7 @@ app.listen(PORT, () => { app.use app.get("*", (req, res) => { - var IP = req.headers['x-forwarded-for'] || req.connection.remoteAddress + var IP = req.ip var IPtext = "This motherfucker's IP is " + IP console.log(IPtext) res.send(IPtext + ", probably!")