mirror of
https://github.com/LibreTranslate/LibreTranslate.git
synced 2025-05-14 14:02:52 +00:00
Fingerprint only if key missing
This commit is contained in:
parent
d8f9121009
commit
e4eb96482f
1 changed files with 2 additions and 1 deletions
|
@ -359,7 +359,8 @@ def create_app(args):
|
||||||
'detectedLanguage': { 'confidence': 100, 'language': 'en' }
|
'detectedLanguage': { 'confidence': 100, 'language': 'en' }
|
||||||
}), 200))
|
}), 200))
|
||||||
|
|
||||||
if args.require_api_key_fingerprint:
|
if (args.require_api_key_fingerprint
|
||||||
|
and key_missing):
|
||||||
if flood.fingerprint_mismatch(ip, get_fingerprint()):
|
if flood.fingerprint_mismatch(ip, get_fingerprint()):
|
||||||
need_key = True
|
need_key = True
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue