Skip to content

Commit

Permalink
internetstandards#881 return correct test name
Browse files Browse the repository at this point in the history
  • Loading branch information
uwekamper committed Feb 12, 2024
1 parent 7a1d8c6 commit 7c3518d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions checks/tasks/mail.py
Original file line number Diff line number Diff line change
Expand Up @@ -887,7 +887,7 @@ def resolve_tlsrpt_record(url, task):

def do_tlsrpt(self, url, *args, **kwargs):
try:
cb_data = resolve_spf_record(url, self)
cb_data = resolve_tlsrpt_record(url, self)
available = "available" in cb_data and cb_data["available"]
score = cb_data["score"]
record = cb_data["record"]
Expand All @@ -909,5 +909,5 @@ def do_tlsrpt(self, url, *args, **kwargs):
score=scoring.MAIL_AUTH_TLSRPT_FAIL,
record=[],
)

return ("spf", result)
# return a tuple containing ("testname", result)
return ("tlsrpt", result)

0 comments on commit 7c3518d

Please sign in to comment.