mirror of
https://github.com/LibreTranslate/LibreTranslate.git
synced 2024-12-18 08:27:03 +02:00
Do not decrease flood violations
This commit is contained in:
parent
f18dfcd60d
commit
bc8b331fe9
@ -177,9 +177,6 @@ def create_app(args):
|
|||||||
|
|
||||||
if flood.is_banned(ip):
|
if flood.is_banned(ip):
|
||||||
abort(403, description="Too many request limits violations")
|
abort(403, description="Too many request limits violations")
|
||||||
else:
|
|
||||||
if flood.has_violation(ip):
|
|
||||||
flood.decrease(ip)
|
|
||||||
|
|
||||||
if args.api_keys:
|
if args.api_keys:
|
||||||
ak = get_req_api_key()
|
ak = get_req_api_key()
|
||||||
|
Loading…
Reference in New Issue
Block a user