mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
remove bunk input validation
This commit is contained in:
parent
1b8048a1eb
commit
ee8c38898d
@ -127,16 +127,6 @@ if ($_POST) {
|
||||
}
|
||||
}
|
||||
|
||||
/* check for overlaps with 1:1 NAT */
|
||||
if (is_array($config['nat']['onetoone'])) {
|
||||
foreach ($config['nat']['onetoone'] as $natent) {
|
||||
if (check_subnets_overlap($_POST['subnet'], 32, $natent['external'], $natent['subnet'])) {
|
||||
$input_errors[] = "A 1:1 NAT mapping overlaps with the specified IP address.";
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/* make sure new ip is within the subnet of a valid ip
|
||||
* on one of our interfaces (wan, lan optX)
|
||||
*/
|
||||
|
||||
Loading…
Reference in New Issue
Block a user