Add button to remove dynamic DHCP leases. They are immediately removed both from FTL and the dhcp.leases file (FTL takes care of updating the file!) WITHOUT the need for a restart of the DHCP/DNS resolver.

Signed-off-by: DL6ER <dl6er@dl6er.de>
This commit is contained in:
DL6ER
2020-11-23 13:35:40 +01:00
parent 1ea21911cf
commit 6e0e1bbb41
3 changed files with 56 additions and 0 deletions

View File

@@ -416,6 +416,13 @@ else
$data = array_merge($data, $result);
}
if (isset($_GET['delete_lease']) && $auth)
{
sendRequestFTL("delete-lease ".$_GET['delete_lease']);
$return = getResponseFTL();
$data["delete_lease"] = $return[0];
}
disconnectFTL();
}
?>