From 316ea936218a67f38372a2168b31583fc2ed3e5c Mon Sep 17 00:00:00 2001 From: Scott Ullrich Date: Fri, 19 Oct 2007 20:46:11 +0000 Subject: [PATCH] Relax the ip address check and allow duplicate ip address entries. --- usr/local/www/services_dhcp_edit.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/usr/local/www/services_dhcp_edit.php b/usr/local/www/services_dhcp_edit.php index f8087fe98c..d8d83c7605 100755 --- a/usr/local/www/services_dhcp_edit.php +++ b/usr/local/www/services_dhcp_edit.php @@ -97,7 +97,7 @@ if ($_POST) { if (isset($id) && ($a_maps[$id]) && ($a_maps[$id] === $mapent)) continue; - if ((($mapent['hostname'] == $_POST['hostname']) && $mapent['hostname']) || ($mapent['mac'] == $_POST['mac']) || ($_POST['ipaddr'])) { + if ((($mapent['hostname'] == $_POST['hostname']) && $mapent['hostname']) || ($mapent['mac'] == $_POST['mac'])) { $input_errors[] = "This Hostname, IP or MAC address already exists."; break; }