Compare commits
4 commits
f0bae12029
...
c1a5befe8f
| Author | SHA1 | Date | |
|---|---|---|---|
| c1a5befe8f | |||
| 611244205f | |||
| a3a315bea2 | |||
| e3bb105c2b |
1 changed files with 8 additions and 16 deletions
|
|
@ -131,22 +131,14 @@
|
|||
}
|
||||
|
||||
// SPF DNS record check
|
||||
const spfRecords = report.dns_results?.spf_records;
|
||||
if (spfRecords && spfRecords.length > 0) {
|
||||
const invalidSpfRecords = spfRecords.filter((r) => !r.valid && r.record);
|
||||
if (invalidSpfRecords.length > 0) {
|
||||
segments.push({ text: ". Your SPF record" });
|
||||
if (invalidSpfRecords.length > 1) {
|
||||
segments.push({ text: "s are " });
|
||||
} else {
|
||||
segments.push({ text: " is " });
|
||||
}
|
||||
segments.push({
|
||||
text: "invalid",
|
||||
highlight: { color: "danger", bold: true },
|
||||
link: "#dns-spf",
|
||||
});
|
||||
}
|
||||
const spfRecord = report.dns_results?.spf_record;
|
||||
if (spfRecord && !spfRecord.valid && spfRecord.record) {
|
||||
segments.push({ text: ". Your SPF record is " });
|
||||
segments.push({
|
||||
text: "invalid",
|
||||
highlight: { color: "danger", bold: true },
|
||||
link: "#dns-spf",
|
||||
});
|
||||
}
|
||||
|
||||
// IP Reverse DNS (iprev) check
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue