diff --git a/scripts/pi-hole/js/messages.js b/scripts/pi-hole/js/messages.js index 124a69e2..a3010a24 100644 --- a/scripts/pi-hole/js/messages.js +++ b/scripts/pi-hole/js/messages.js @@ -57,6 +57,22 @@ function renderMessage(data, type, row) { " to get the group configuration for this client." ); + case "HOSTNAME": + var hint = new Array(row.blob2 + row.message.length + 3).join(" "); + return ( + "Hostname contains invalid character " + + decodeURIComponent(escape(row.blob1))[row.blob2] + + ":
" +
+        hint +
+        "↓\n" +
+        row.message +
+        ": " +
+        decodeURIComponent(escape(row.blob1)) +
+        "\n" +
+        hint +
+        "↑
" + ); + default: return "Unknown message type
" + JSON.stringify(row) + "
"; }