mirror of
https://github.com/LibreTranslate/LibreTranslate.git
synced 2026-05-25 00:12:28 -04:00
Include flood reporting when API key is not valid to counter brute force attempts
This commit is contained in:
@@ -379,6 +379,7 @@ def create_app(args):
|
||||
400,
|
||||
description=description,
|
||||
)
|
||||
flood.report(get_remote_address())
|
||||
return f(*a, **kw)
|
||||
|
||||
if args.metrics:
|
||||
|
||||
Reference in New Issue
Block a user