Skip to content

Commit

Permalink
Show extended DNS error (if applicable) (#3184)
Browse files Browse the repository at this point in the history
  • Loading branch information
DL6ER authored Dec 22, 2024
2 parents 327171d + e7a97d3 commit 943a2e5
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions scripts/js/queries.js
Original file line number Diff line number Diff line change
Expand Up @@ -344,6 +344,17 @@ function formatInfo(data) {
? divStart + "Reply:&nbsp&nbsp;" + data.reply.type + "</div>"
: divStart + "Reply:&nbsp;&nbsp;No reply received</div>";

// Show extended DNS error if applicable
var edeInfo = "";
if (data.ede !== null && data.ede.text !== null) {
edeInfo = divStart + "Extended DNS error:&nbsp;&nbsp;<strong";
if (dnssecClass !== false) {
edeInfo += ' class="' + dnssecClass + '"';
}

edeInfo += ">" + data.ede.text + "</strong></div>";
}

// Compile extra info for displaying
return (
'<div class="row">' +
Expand All @@ -353,6 +364,7 @@ function formatInfo(data) {
"</div>" +
clientInfo +
dnssecInfo +
edeInfo +
statusInfo +
cnameInfo +
listInfo +
Expand Down

0 comments on commit 943a2e5

Please sign in to comment.