mirror of
https://github.com/pi-hole/web.git
synced 2026-04-24 18:59:48 +01:00
Add rate-limit settings to dashboard
Signed-off-by: DL6ER <dl6er@dl6er.de>
This commit is contained in:
@@ -352,6 +352,13 @@ function addStaticDHCPLease($mac, $ip, $hostname) {
|
||||
}
|
||||
pihole_execute("-a -i ".$DNSinterface." -web");
|
||||
|
||||
// Add rate-limiting settings
|
||||
if(isset($_POST["rate_limit_count"]) && isset($_POST["rate_limit_interval"]))
|
||||
{
|
||||
// Restart of FTL is delayed
|
||||
pihole_execute("-a ratelimit " . intval($_POST["rate_limit_count"]) . " " . intval($_POST["rate_limit_interval"]) . " false");
|
||||
}
|
||||
|
||||
// If there has been no error we can save the new DNS server IPs
|
||||
if(!strlen($error))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user