mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
Relax the ip address check and allow duplicate ip address entries.
This commit is contained in:
parent
0c82024286
commit
316ea93621
@ -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;
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user