From 413e72789fd4e8035c3f657e8d6e36c5285c4fa2 Mon Sep 17 00:00:00 2001 From: bingus_violet Date: Wed, 4 Dec 2024 15:13:01 -0600 Subject: [PATCH] im gonan cry --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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!")