mirror of
https://github.com/pi-hole/web.git
synced 2024-12-06 19:36:21 +01:00
Add DOMAIN_RATE_LIMIT message interpretation
Signed-off-by: DL6ER <dl6er@dl6er.de>
This commit is contained in:
@@ -139,6 +139,19 @@ function renderMessage(data, type, row) {
|
||||
"</pre>"
|
||||
);
|
||||
|
||||
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<pre>" + JSON.stringify(row) + "</pre>";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user