From b2cf744d1ae11b4d6be35e83de8b2550b21111a1 Mon Sep 17 00:00:00 2001 From: vladupshot <154623109+vladupshot@users.noreply.github.com> Date: Wed, 3 Jul 2024 10:29:49 +1200 Subject: [PATCH] debug --- faucet.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/faucet.js b/faucet.js index 30657d5..bc5f95d 100644 --- a/faucet.js +++ b/faucet.js @@ -24,7 +24,7 @@ const checker = new FrequencyChecker(conf) app.use((req, res, next) => { const clientip = req.headers['x-real-ip'] || req.headers['X-Real-IP'] || req.headers['X-Forwarded-For'] || req.ip console.log(`Received ${req.method} request at ${req.url} from ${clientip}`); - console.log(req.headers.entries()); + console.log(req.headers['x-real-ip'],req.headers['X-Real-IP'],req.headers['X-Forwarded-For']); next(); });