From f69f7e88f37b3393ea539cb098ebb09b0787cc74 Mon Sep 17 00:00:00 2001 From: DL6ER Date: Mon, 21 Nov 2022 12:01:36 +0100 Subject: [PATCH] Add DOMAIN_RATE_LIMIT message interpretation Signed-off-by: DL6ER --- scripts/pi-hole/js/messages.js | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/scripts/pi-hole/js/messages.js b/scripts/pi-hole/js/messages.js index a480d550..670b78ee 100644 --- a/scripts/pi-hole/js/messages.js +++ b/scripts/pi-hole/js/messages.js @@ -139,6 +139,19 @@ function renderMessage(data, type, row) { "" ); + case "DOMAIN_RATE_LIMIT": + return ( + "Client " + + utils.escapeHtml(row.blob1) + + " has been rate-limited for domain " + + utils.escapeHtml(row.message) + + " (current config allows up to " + + parseInt(row.blob2, 10) + + " queries per client and domain in " + + parseInt(row.blob3, 10) + + " seconds)" + ); + default: return "Unknown message type
" + JSON.stringify(row) + "
"; }