mirror of
https://github.com/pi-hole/web.git
synced 2024-12-06 19:36:21 +01:00
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:
@@ -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>";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user