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