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:
DL6ER
2019-01-20 09:43:22 +01:00
committed by GitHub

View File

@@ -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))