fix: if add strict False check
All checks were successful
Build Docker / Build Image (push) Successful in 21s

This commit is contained in:
Nathan Woodburn 2023-11-09 22:28:58 +11:00
parent 24d4ea2afb
commit f2fff2b9fc
Signed by: nathanwoodburn
GPG Key ID: 203B000478AD0EF1

View File

@ -43,9 +43,8 @@ def jsonlookup(path):
return make_response({"success":False,"error":"Invalid domain"}, 200, {'Content-Type': 'application/json'})
TLSA = hip02.TLSA_check(HSD_IP,HSD_PORT,path)
if not TLSA:
if TLSA != True:
return make_response({"success":False,"error":TLSA}, 200, {'Content-Type': 'application/json'})
token = "HNS"
if 'token' in request.args:
token = request.args['token'].upper()
@ -63,7 +62,7 @@ def lookup(path):
return make_response("Invalid domain", 200, {'Content-Type': 'text/plain'})
TLSA = hip02.TLSA_check(HSD_IP,HSD_PORT,path)
if not TLSA:
if TLSA != True:
return make_response(TLSA, 200, {'Content-Type': 'text/plain'})
token = "HNS"
if 'token' in request.args: