fix(pockethost): firewall should reject empty IPs

This commit is contained in:
Ben Allfree 2025-10-20 14:07:20 +00:00
parent 1cd8301ebe
commit d558c1e527

View File

@ -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