Revision 4be0c837
Added by Individual IT Services about 12 years ago
usr/local/www/services_dhcp_edit.php | ||
---|---|---|
173 | 173 |
if (isset($id) && ($a_maps[$id]) && ($a_maps[$id] === $mapent)) |
174 | 174 |
continue; |
175 | 175 |
|
176 |
if ((($mapent['hostname'] == $_POST['hostname']) && $mapent['hostname']) || ($mapent['mac'] == $_POST['mac'])) {
|
|
176 |
if ((($mapent['hostname'] == $_POST['hostname']) && $mapent['hostname']) || (($mapent['mac'] == $_POST['mac']) && $mapent['mac']) || (($mapent['ipaddr'] == $_POST['ipaddr']) && $mapent['ipaddr'])) {
|
|
177 | 177 |
$input_errors[] = gettext("This Hostname, IP or MAC address already exists."); |
178 | 178 |
break; |
179 | 179 |
} |
Also available in: Unified diff
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