hotfix for bad CNAME for TLSA

This commit is contained in:
Beu 2018-07-04 18:15:53 +02:00
parent 4743ae9ca3
commit 61f0a08113

View File

@ -42,6 +42,10 @@ def tlsa_validation(DOMAIN):
else:
tlsaanswer = str(response.answer[-1])
tlsatable = tlsaanswer.split()
if len(tlsalist) < 7:
return(False)
selector = str(tlsatable[5])
mtype = str(tlsatable[6])
hexdata1 = str(tlsatable[7])