summaryrefslogtreecommitdiffstats
path: root/usr
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2007-10-19 20:39:10 +0000
committerScott Ullrich <sullrich@pfsense.org>2007-10-19 20:39:10 +0000
commit87e629404e857d4c174459d61c885792e4c64dbf (patch)
tree0f9c94444244676344988a42613357ebe3ba6e31 /usr
parentb11353e7af2661adcdb8126ed94504d541f61c5f (diff)
downloadpfsense-87e629404e857d4c174459d61c885792e4c64dbf.zip
pfsense-87e629404e857d4c174459d61c885792e4c64dbf.tar.gz
Relax the ip address check and allow duplicate ip address entries.
Diffstat (limited to 'usr')
-rwxr-xr-xusr/local/www/services_dhcp_edit.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr/local/www/services_dhcp_edit.php b/usr/local/www/services_dhcp_edit.php
index 6cbd77e..59d9aa7 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'] && (ip2long($mapent['ipaddr']) == ip2long($_POST['ipaddr'])))) {
+ if ((($mapent['hostname'] == $_POST['hostname']) && $mapent['hostname']) || ($mapent['mac'] == $_POST['mac']) || ($_POST['ipaddr'])) {
$input_errors[] = "This Hostname, IP or MAC address already exists.";
break;
}
OpenPOWER on IntegriCloud