Funny X-Real_IP go brrrr

This commit is contained in:
Christopher Cookman 2023-01-01 19:23:35 -07:00
parent 42a028f52c
commit 0d33128233
Signed by: ChrisChrome
GPG key ID: A023A26E42C33A42

View file

@ -424,7 +424,7 @@ app.get('/', (req, res) => {
"commit": getGitCommitDetails() "commit": getGitCommitDetails()
}, },
"debug": { "debug": {
"yourIP": req.ip, "yourIP": req.headers["X-Real-IP"] || req.ip,
"yourUserAgent": req.headers["user-agent"] "yourUserAgent": req.headers["user-agent"]
} }
})); }));