Skip to content

Commit

Permalink
chore: debug log to determine ip ranges (#33)
Browse files Browse the repository at this point in the history
  • Loading branch information
George Thomas authored Aug 1, 2024
1 parent cfc7f6c commit d823063
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,9 @@ const getMiddleware = () => (req, res, next) => {

// Only expect private IPs from this range
if (!blocklist.check(requestingIP)) {
// eslint-disable-next-line no-console
console.debug(`Blocking request from ${requestingIP}`);

return next();
}

Expand Down

0 comments on commit d823063

Please sign in to comment.