From 9a9f3a69faf03d086ec22227e7cbc9a94c7c4a95 Mon Sep 17 00:00:00 2001 From: ChrisChrome Date: Sun, 1 Jan 2023 19:31:28 -0700 Subject: [PATCH] Remove headers? --- index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/index.js b/index.js index 1e09f9e..8b02429 100644 --- a/index.js +++ b/index.js @@ -424,9 +424,9 @@ app.get('/', (req, res) => { "commit": getGitCommitDetails() }, "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"], - "yourHeaders": req.headers } })); });