From 61f97a4fa54f560d9ef4ccd9e2cd440011d4af9d Mon Sep 17 00:00:00 2001 From: bingus_violet Date: Wed, 4 Dec 2024 15:14:15 -0600 Subject: [PATCH] OKAY I THINK IT SHOULD WORK ACTAULLY --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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!")