diff options
author | Individual IT Services <ict.projects@nepal.inf.org> | 2013-08-13 04:14:36 -0700 |
---|---|---|
committer | Renato Botelho <garga@FreeBSD.org> | 2013-08-13 17:56:10 -0300 |
commit | 4be0c837bafcc46d66240114e8b7654c14ed85c9 (patch) | |
tree | ccc0facff0f79e31f8d54c10410018e2feb2c39b /usr/local/www | |
parent | 9a85884bc5fa4fb731a31a83a12eb676100ae968 (diff) | |
download | pfsense-4be0c837bafcc46d66240114e8b7654c14ed85c9.zip pfsense-4be0c837bafcc46d66240114e8b7654c14ed85c9.tar.gz |
Fix check for existing IP Address in DHCP mapping
Even the Error message says: "This Hostname, IP or MAC address already exists." the IP Address was not checked if it already was given to a client as static mapped
Conflicts:
usr/local/www/services_dhcp_edit.php
Diffstat (limited to 'usr/local/www')
-rwxr-xr-x | usr/local/www/services_dhcp_edit.php | 2 |
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 81a6cfd..f318bc4 100755 --- a/usr/local/www/services_dhcp_edit.php +++ b/usr/local/www/services_dhcp_edit.php @@ -173,7 +173,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'])) { + if ((($mapent['hostname'] == $_POST['hostname']) && $mapent['hostname']) || (($mapent['mac'] == $_POST['mac']) && $mapent['mac']) || (($mapent['ipaddr'] == $_POST['ipaddr']) && $mapent['ipaddr'])) { $input_errors[] = gettext("This Hostname, IP or MAC address already exists."); break; } |