mirror of
https://github.com/LibreTranslate/LibreTranslate.git
synced 2026-05-29 10:22:32 -04:00
Fix memory leak
This commit is contained in:
+3
-2
@@ -28,8 +28,9 @@ def setup(violations_threshold = 100):
|
||||
|
||||
|
||||
def report(request_ip):
|
||||
banned[request_ip] = banned.get(request_ip, 0)
|
||||
banned[request_ip] += 1
|
||||
if active:
|
||||
banned[request_ip] = banned.get(request_ip, 0)
|
||||
banned[request_ip] += 1
|
||||
|
||||
def is_banned(request_ip):
|
||||
# More than X offences?
|
||||
|
||||
Reference in New Issue
Block a user