diff options
author | Chris Buechler <cmb@pfsense.org> | 2010-02-21 01:54:44 -0500 |
---|---|---|
committer | Chris Buechler <cmb@pfsense.org> | 2010-02-21 01:54:44 -0500 |
commit | 9301de7eae380eac0890db11d57c6c7aecdcbe3e (patch) | |
tree | ac67c8dfb405d93afeac4b09fea86cdbbf42adc8 /usr/local/www | |
parent | f2c3db14d57385f0468bd326a56acc0d84bb8a14 (diff) | |
download | pfsense-9301de7eae380eac0890db11d57c6c7aecdcbe3e.zip pfsense-9301de7eae380eac0890db11d57c6c7aecdcbe3e.tar.gz |
check against correct variable
Diffstat (limited to 'usr/local/www')
-rwxr-xr-x | usr/local/www/firewall_virtual_ip_edit.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr/local/www/firewall_virtual_ip_edit.php b/usr/local/www/firewall_virtual_ip_edit.php index bec5e10..efd8486 100755 --- a/usr/local/www/firewall_virtual_ip_edit.php +++ b/usr/local/www/firewall_virtual_ip_edit.php @@ -110,7 +110,7 @@ if ($_POST) { $natiflist = get_configured_interface_with_descr(); foreach ($natiflist as $natif => $natdescr) - if ($_POST['ipaddr'] == get_interface_ip($natif)) + if ($_POST['subnet'] == get_interface_ip($natif)) $input_errors[] = "The {$natdescr} IP address may not be used in a virtual entry."; if($_POST['subnet_bits'] == "32" and $_POST['type'] == "carp") @@ -130,7 +130,7 @@ 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['ipaddr'], 32, $natent['external'], $natent['subnet'])) { + 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; } |