mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
diagnosis: make the dnsrecord diagnoser not complain about the damn 128 vs 0 stuff in CAA records
This commit is contained in:
parent
4aaa88968a
commit
70a8225b1d
1 changed files with 5 additions and 0 deletions
|
@ -223,6 +223,11 @@ class MyDiagnoser(Diagnoser):
|
|||
expected = r["value"].split()[-1]
|
||||
current = r["current"].split()[-1]
|
||||
return expected == current
|
||||
elif r["type"] == "CAA":
|
||||
# For CAA, check only the last item, ignore the 0 / 128 nightmare
|
||||
expected = r["value"].split()[-1]
|
||||
current = r["current"].split()[-1]
|
||||
return expected == current
|
||||
else:
|
||||
return r["current"] == r["value"]
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue