Merge pull request #1859 from pi-hole/new/rate_limit_message

Add interpretation for Pi-hole message type RATE_LIMIT
This commit is contained in:
DL6ER
2021-08-08 08:21:33 +02:00
committed by GitHub
+11
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>";
}