mirror of
https://github.com/pi-hole/web.git
synced 2024-12-06 19:36:21 +01:00
Add support for HOSTNAME diagnostics message
Signed-off-by: DL6ER <dl6er@dl6er.de>
This commit is contained in:
@@ -57,6 +57,24 @@ function renderMessage(data, type, row) {
|
||||
"</pre> to get the group configuration for this client."
|
||||
);
|
||||
|
||||
case "HOSTNAME":
|
||||
var hint = "";
|
||||
for (var i = 0; i < row.blob2 + row.message.length + 2; i++) hint += " ";
|
||||
return (
|
||||
"Host names contains invalid character <code> " +
|
||||
decodeURIComponent(escape(row.blob1))[row.blob2] +
|
||||
"</code>:<pre>" +
|
||||
hint +
|
||||
"↓\n" +
|
||||
row.message +
|
||||
": " +
|
||||
decodeURIComponent(escape(row.blob1)) +
|
||||
"\n" +
|
||||
hint +
|
||||
"↑" +
|
||||
"</pre>"
|
||||
);
|
||||
|
||||
default:
|
||||
return "Unknown message type<pre>" + JSON.stringify(row) + "</pre>";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user