diff --git a/packages/pockethost/src/cli/commands/FirewallCommand/ServeCommand/firewall/rate-limiter.ts b/packages/pockethost/src/cli/commands/FirewallCommand/ServeCommand/firewall/rate-limiter.ts index b48c1824..71f3fd62 100644 --- a/packages/pockethost/src/cli/commands/FirewallCommand/ServeCommand/firewall/rate-limiter.ts +++ b/packages/pockethost/src/cli/commands/FirewallCommand/ServeCommand/firewall/rate-limiter.ts @@ -49,7 +49,8 @@ export const createRateLimiterMiddleware = (logger: Logger) => { const ip = getClientIp(req) if (!ip) { warn(`Could not determine IP address`) - return next() + res.status(429).send(`IP address not found`) + return } const hostname = req.hostname