Remove headers?

This commit is contained in:
Christopher Cookman 2023-01-01 19:31:28 -07:00
parent b242e38f96
commit 9a9f3a69fa
Signed by: ChrisChrome
GPG key ID: A023A26E42C33A42

View file

@ -424,9 +424,9 @@ app.get('/', (req, res) => {
"commit": getGitCommitDetails() "commit": getGitCommitDetails()
}, },
"debug": { "debug": {
"yourIP": req.ip || req.headers["X-Real-IP"], // "yourIP" Either the IP of the user, or the IP of the proxy if one is used, proxy IP header is x-real-ip
"yourIP": req.headers["x-real-ip"] || req.ip,
"yourUserAgent": req.headers["user-agent"], "yourUserAgent": req.headers["user-agent"],
"yourHeaders": req.headers
} }
})); }));
}); });