mirror of
https://github.com/pi-hole/web.git
synced 2025-12-26 13:36:22 +00:00
Prevent multiple static DHCP entries for the same IP address to get added. Fixes #889
Signed-off-by: DL6ER <dl6er@dl6er.de>
This commit is contained in:
@@ -558,6 +558,11 @@ function readAdlists()
|
||||
$error .= "Static release for MAC address (".htmlspecialchars($mac).") already defined!<br>";
|
||||
break;
|
||||
}
|
||||
if($ip !== "noip" && $lease["IP"] === $ip)
|
||||
{
|
||||
$error .= "Static release for IP address (".htmlspecialchars($ip).") already defined!<br>";
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
if(!strlen($error))
|
||||
|
||||
Reference in New Issue
Block a user