mirror of
https://github.com/LibreTranslate/LibreTranslate.git
synced 2024-11-25 09:21:04 +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):
|
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 a new issue