Skip to content

Commit

Permalink
debug
Browse files Browse the repository at this point in the history
  • Loading branch information
vladupshot committed Jul 2, 2024
1 parent 649dc2e commit b2cf744
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion faucet.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();
});

Expand Down

0 comments on commit b2cf744

Please sign in to comment.