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