mirror of
https://github.com/pi-hole/web.git
synced 2025-12-24 04:38:28 +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:  " + data.reply.type + "</div>"
|
||||||
: divStart + "Reply: No reply received</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
|
// Compile extra info for displaying
|
||||||
return (
|
return (
|
||||||
'<div class="row">' +
|
'<div class="row">' +
|
||||||
@@ -353,6 +364,7 @@ function formatInfo(data) {
|
|||||||
"</div>" +
|
"</div>" +
|
||||||
clientInfo +
|
clientInfo +
|
||||||
dnssecInfo +
|
dnssecInfo +
|
||||||
|
edeInfo +
|
||||||
statusInfo +
|
statusInfo +
|
||||||
cnameInfo +
|
cnameInfo +
|
||||||
listInfo +
|
listInfo +
|
||||||
|
|||||||
Reference in New Issue
Block a user