diff options
author | Chris Buechler <cmb@pfsense.org> | 2010-04-24 22:25:06 -0400 |
---|---|---|
committer | Chris Buechler <cmb@pfsense.org> | 2010-04-24 22:25:06 -0400 |
commit | 81a242773ee39eb1e2c25cafe279f02780a98de3 (patch) | |
tree | f641fe82abe1c712b498485dfe6d4563ab66e3e6 /usr/local/www/firewall_nat_out_edit.php | |
parent | e05b5278cf7fb238ee5355f9701be4c11869f1d2 (diff) | |
download | pfsense-81a242773ee39eb1e2c25cafe279f02780a98de3.zip pfsense-81a242773ee39eb1e2c25cafe279f02780a98de3.tar.gz |
remove unnecessary input validation checks
Diffstat (limited to 'usr/local/www/firewall_nat_out_edit.php')
-rwxr-xr-x | usr/local/www/firewall_nat_out_edit.php | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/usr/local/www/firewall_nat_out_edit.php b/usr/local/www/firewall_nat_out_edit.php index 45db4ba..483aec1 100755 --- a/usr/local/www/firewall_nat_out_edit.php +++ b/usr/local/www/firewall_nat_out_edit.php @@ -169,18 +169,6 @@ if ($_POST) { $ext = gen_subnet($_POST['destination'], $_POST['destination_subnet']) . "/" . $_POST['destination_subnet']; } - if ($_POST['target']) { - /* check for clashes with 1:1 NAT (NAT Addresses is OK) */ - if (is_array($config['nat']['onetoone'])) { - foreach ($config['nat']['onetoone'] as $natent) { - if (check_subnets_overlap($_POST['target'], 32, $natent['external'], $natent['subnet'])) { - $input_errors[] = "A 1:1 NAT mapping overlaps with the specified target IP address."; - break; - } - } - } - } - foreach ($a_out as $natent) { if (isset($id) && ($a_out[$id]) && ($a_out[$id] === $natent)) { continue; |