mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
Merge pull request #1680 from npalix/dnsdiag
diagnosis: Support multiple TXT entries for TLD
This commit is contained in:
commit
4da98e74ae
1 changed files with 4 additions and 0 deletions
|
@ -182,6 +182,10 @@ class MyDiagnoser(Diagnoser):
|
||||||
if success != "ok":
|
if success != "ok":
|
||||||
return None
|
return None
|
||||||
else:
|
else:
|
||||||
|
if type_ == "TXT" and isinstance(answers,list):
|
||||||
|
for part in answers:
|
||||||
|
if part.startswith('"v=spf1'):
|
||||||
|
return part
|
||||||
return answers[0] if len(answers) == 1 else answers
|
return answers[0] if len(answers) == 1 else answers
|
||||||
|
|
||||||
def current_record_match_expected(self, r):
|
def current_record_match_expected(self, r):
|
||||||
|
|
Loading…
Add table
Reference in a new issue