uhm???
This commit is contained in:
parent
430028a161
commit
c248f645a9
1 changed files with 3 additions and 1 deletions
4
index.js
4
index.js
|
@ -8,6 +8,8 @@ app.listen(PORT, () => {
|
|||
console.log("Shit ass dumb ip grabber is on port " + PORT)
|
||||
})
|
||||
|
||||
app.set('trust proxy', true)
|
||||
|
||||
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)
|
||||
})
|
Loading…
Reference in a new issue