fix: if add strict False check
All checks were successful
Build Docker / Build Image (push) Successful in 21s
All checks were successful
Build Docker / Build Image (push) Successful in 21s
This commit is contained in:
parent
24d4ea2afb
commit
f2fff2b9fc
5
main.py
5
main.py
@ -43,9 +43,8 @@ def jsonlookup(path):
|
|||||||
return make_response({"success":False,"error":"Invalid domain"}, 200, {'Content-Type': 'application/json'})
|
return make_response({"success":False,"error":"Invalid domain"}, 200, {'Content-Type': 'application/json'})
|
||||||
|
|
||||||
TLSA = hip02.TLSA_check(HSD_IP,HSD_PORT,path)
|
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'})
|
return make_response({"success":False,"error":TLSA}, 200, {'Content-Type': 'application/json'})
|
||||||
|
|
||||||
token = "HNS"
|
token = "HNS"
|
||||||
if 'token' in request.args:
|
if 'token' in request.args:
|
||||||
token = request.args['token'].upper()
|
token = request.args['token'].upper()
|
||||||
@ -63,7 +62,7 @@ def lookup(path):
|
|||||||
return make_response("Invalid domain", 200, {'Content-Type': 'text/plain'})
|
return make_response("Invalid domain", 200, {'Content-Type': 'text/plain'})
|
||||||
|
|
||||||
TLSA = hip02.TLSA_check(HSD_IP,HSD_PORT,path)
|
TLSA = hip02.TLSA_check(HSD_IP,HSD_PORT,path)
|
||||||
if not TLSA:
|
if TLSA != True:
|
||||||
return make_response(TLSA, 200, {'Content-Type': 'text/plain'})
|
return make_response(TLSA, 200, {'Content-Type': 'text/plain'})
|
||||||
token = "HNS"
|
token = "HNS"
|
||||||
if 'token' in request.args:
|
if 'token' in request.args:
|
||||||
|
Loading…
Reference in New Issue
Block a user