Skip to content

Commit

Permalink
internetstandards#881 resolve the correct dns name
Browse files Browse the repository at this point in the history
  • Loading branch information
uwekamper committed Feb 12, 2024
1 parent 49b432b commit 7a1d8c6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion checks/tasks/mail.py
Original file line number Diff line number Diff line change
Expand Up @@ -882,7 +882,7 @@ def resolve_tlsrpt_record(url, task):
# Make sure, url does not start with a dot, then add "_smtp._tls." in front
# of the domain name.
tls_rpt_url = f'_smtp._tls.{url.lstrip(".")}'
return task.async_resolv(url, unbound.RR_TYPE_TXT, callback=tlsrpt_callback)
return task.async_resolv(tls_rpt_url, unbound.RR_TYPE_TXT, callback=tlsrpt_callback)


def do_tlsrpt(self, url, *args, **kwargs):
Expand Down

0 comments on commit 7a1d8c6

Please sign in to comment.