Add interpretation for Pi-hole message type RATE_LIMIT

Signed-off-by: DL6ER <dl6er@dl6er.de>
This commit is contained in:
DL6ER
2021-08-06 21:35:41 +02:00
committed by yubiuser
parent 29fbb3379f
commit 4faa77da39

View File

@@ -77,6 +77,17 @@ function renderMessage(data, type, row) {
case "DNSMASQ_CONFIG":
return "FTL failed to start due to " + row.message;
case "RATE_LIMIT":
return (
"Client " +
row.message +
" has been rate-limited (current config allows up to " +
parseInt(row.blob1, 10) +
" queries in " +
parseInt(row.blob2, 10) +
" seconds)"
);
default:
return "Unknown message type<pre>" + JSON.stringify(row) + "</pre>";
}