mirror of
https://github.com/pi-hole/web.git
synced 2025-12-24 20:55:28 +00:00
Merge pull request #891 from pi-hole/fix/DHCP_static_leases_dupl_IP
Prevent multiple static DHCP entries with same IP
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 lease for IP address (".htmlspecialchars($ip).") already defined!<br>";
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
if(!strlen($error))
|
||||
|
||||
Reference in New Issue
Block a user