mirror of
https://github.com/pi-hole/web.git
synced 2025-12-23 12:18:26 +00:00
Show extended DNS error (if applicable)
Signed-off-by: DL6ER <dl6er@dl6er.de>
This commit is contained in:
@@ -344,6 +344,17 @@ function formatInfo(data) {
|
||||
? divStart + "Reply:  " + data.reply.type + "</div>"
|
||||
: divStart + "Reply: 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: <strong";
|
||||
if (dnssecClass !== false) {
|
||||
edeInfo += ' class="' + dnssecClass + '"';
|
||||
}
|
||||
|
||||
edeInfo += ">" + data.ede.text + "</strong></div>";
|
||||
}
|
||||
|
||||
// Compile extra info for displaying
|
||||
return (
|
||||
'<div class="row">' +
|
||||
@@ -353,6 +364,7 @@ function formatInfo(data) {
|
||||
"</div>" +
|
||||
clientInfo +
|
||||
dnssecInfo +
|
||||
edeInfo +
|
||||
statusInfo +
|
||||
cnameInfo +
|
||||
listInfo +
|
||||
|
||||
Reference in New Issue
Block a user