Sync from GitHub main #1
@@ -167,7 +167,10 @@ class BanStore:
|
||||
return entry
|
||||
|
||||
def unban_ip(self, ip: str) -> bool:
|
||||
try:
|
||||
normalized = self._normalize_ip(ip)
|
||||
except ValueError:
|
||||
return False
|
||||
with self._lock:
|
||||
if normalized not in self._bans:
|
||||
return False
|
||||
|
||||
Reference in New Issue
Block a user