hotfix for bad CNAME for TLSA
This commit is contained in:
parent
4743ae9ca3
commit
61f0a08113
4
index.py
4
index.py
@ -42,6 +42,10 @@ def tlsa_validation(DOMAIN):
|
|||||||
else:
|
else:
|
||||||
tlsaanswer = str(response.answer[-1])
|
tlsaanswer = str(response.answer[-1])
|
||||||
tlsatable = tlsaanswer.split()
|
tlsatable = tlsaanswer.split()
|
||||||
|
|
||||||
|
if len(tlsalist) < 7:
|
||||||
|
return(False)
|
||||||
|
|
||||||
selector = str(tlsatable[5])
|
selector = str(tlsatable[5])
|
||||||
mtype = str(tlsatable[6])
|
mtype = str(tlsatable[6])
|
||||||
hexdata1 = str(tlsatable[7])
|
hexdata1 = str(tlsatable[7])
|
||||||
|
Loading…
Reference in New Issue
Block a user