mirror of
https://github.com/LibreTranslate/LibreTranslate.git
synced 2025-05-24 01:12:56 -04:00
Fingerprint only if key missing
This commit is contained in:
parent
d8f9121009
commit
e4eb96482f
@ -359,7 +359,8 @@ def create_app(args):
|
||||
'detectedLanguage': { 'confidence': 100, 'language': 'en' }
|
||||
}), 200))
|
||||
|
||||
if args.require_api_key_fingerprint:
|
||||
if (args.require_api_key_fingerprint
|
||||
and key_missing):
|
||||
if flood.fingerprint_mismatch(ip, get_fingerprint()):
|
||||
need_key = True
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user