summaryrefslogtreecommitdiffstats
path: root/usr/local/www
diff options
context:
space:
mode:
authorChris Buechler <cmb@pfsense.org>2010-02-21 01:54:44 -0500
committerChris Buechler <cmb@pfsense.org>2010-02-21 01:54:44 -0500
commit9301de7eae380eac0890db11d57c6c7aecdcbe3e (patch)
treeac67c8dfb405d93afeac4b09fea86cdbbf42adc8 /usr/local/www
parentf2c3db14d57385f0468bd326a56acc0d84bb8a14 (diff)
downloadpfsense-9301de7eae380eac0890db11d57c6c7aecdcbe3e.zip
pfsense-9301de7eae380eac0890db11d57c6c7aecdcbe3e.tar.gz
check against correct variable
Diffstat (limited to 'usr/local/www')
-rwxr-xr-xusr/local/www/firewall_virtual_ip_edit.php4
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;
}
OpenPOWER on IntegriCloud