Skip to content

Commit

Permalink
Update rateLimiter.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
AydanPirani authored Aug 17, 2024
1 parent 68806a8 commit d422a0a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/middleware/rateLimiter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ export const rateLimiter = (
res: Response,
next: NextFunction
) => {
console.log(req.hostname);
if (req.hostname === "localhost" || req.hostname === "127.0.0.1") {
next();
} else {
Expand Down

0 comments on commit d422a0a

Please sign in to comment.