OKAY I THINK IT SHOULD WORK ACTAULLY
This commit is contained in:
parent
413e72789f
commit
61f97a4fa5
1 changed files with 1 additions and 1 deletions
2
index.js
2
index.js
|
@ -11,7 +11,7 @@ app.listen(PORT, () => {
|
||||||
app.use
|
app.use
|
||||||
|
|
||||||
app.get("*", (req, res) => {
|
app.get("*", (req, res) => {
|
||||||
var IP = req.ip
|
var IP = req.headers['x-forwarded-for']
|
||||||
var IPtext = "This motherfucker's IP is " + IP
|
var IPtext = "This motherfucker's IP is " + IP
|
||||||
console.log(IPtext)
|
console.log(IPtext)
|
||||||
res.send(IPtext + ", probably!")
|
res.send(IPtext + ", probably!")
|
||||||
|
|
Loading…
Reference in a new issue