This commit is contained in:
bingus_violet 2024-12-04 15:07:00 -06:00
parent 430028a161
commit c248f645a9

View file

@ -8,6 +8,8 @@ app.listen(PORT, () => {
console.log("Shit ass dumb ip grabber is on port " + PORT) console.log("Shit ass dumb ip grabber is on port " + PORT)
}) })
app.set('trust proxy', true)
app.get("*", (req, res) => { app.get("*", (req, res) => {
console.log("This motherfucker's IP is " + req.headers['x-forwarded-for'] || req.socket.remoteAddress || req.hostname) console.log("This motherfucker's IP is " + req.ip || req.ips || req.headers['x-forwarded-for'] || req.socket.remoteAddress || req.hostname)
}) })