Skip to content

Commit 30b16be

Browse files
committed
Forgot to rever this from testing.
1 parent 576d66b commit 30b16be

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

starlette_plus/middleware/ratelimiter.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ async def __call__(self, scope: Scope, receive: Receive, send: Send) -> None:
100100
# forwarded or client.host will exist at this point...
101101
key: str = forwarded.split(",")[0] if forwarded else request.client.host # type: ignore
102102

103-
if self._ignore_local and key not in ("127.0.0.1", "::1", "localhost", "0.0.0.0"):
103+
if self._ignore_local and key in ("127.0.0.1", "::1", "localhost", "0.0.0.0"):
104104
return await self.app(scope, receive, send)
105105
else:
106106
key: str | None = await bucket(request)

0 commit comments

Comments
 (0)