mirror of
https://github.com/LibreTranslate/LibreTranslate.git
synced 2024-11-21 15:31:00 +00:00
Do not decrease flood violations
This commit is contained in:
parent
f18dfcd60d
commit
bc8b331fe9
1 changed files with 0 additions and 3 deletions
|
@ -177,9 +177,6 @@ def create_app(args):
|
|||
|
||||
if flood.is_banned(ip):
|
||||
abort(403, description="Too many request limits violations")
|
||||
else:
|
||||
if flood.has_violation(ip):
|
||||
flood.decrease(ip)
|
||||
|
||||
if args.api_keys:
|
||||
ak = get_req_api_key()
|
||||
|
|
Loading…
Reference in a new issue