mirror of
https://github.com/LibreTranslate/LibreTranslate.git
synced 2025-07-09 03:04:26 -04:00
Fix memory leak
This commit is contained in:
parent
1ac27aeb82
commit
5c76febaa4
@ -28,6 +28,7 @@ def setup(violations_threshold = 100):
|
|||||||
|
|
||||||
|
|
||||||
def report(request_ip):
|
def report(request_ip):
|
||||||
|
if active:
|
||||||
banned[request_ip] = banned.get(request_ip, 0)
|
banned[request_ip] = banned.get(request_ip, 0)
|
||||||
banned[request_ip] += 1
|
banned[request_ip] += 1
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user