summaryrefslogtreecommitdiffstats
path: root/usr
diff options
context:
space:
mode:
authorRenato Botelho <renato.botelho@bluepex.com>2010-04-13 11:04:59 -0300
committerRenato Botelho <renato.botelho@bluepex.com>2010-04-13 11:04:59 -0300
commit3504e10b0f98fd7f02a68dc3a22d0b150346e241 (patch)
tree3365654ce4af30aa3f142a4a919b8f9a94102254 /usr
parent09579bb0dd964851dddb3511d68bcc0162844c14 (diff)
downloadpfsense-3504e10b0f98fd7f02a68dc3a22d0b150346e241.zip
pfsense-3504e10b0f98fd7f02a68dc3a22d0b150346e241.tar.gz
Use correct xml tag to compare with nat port forward destination address
Diffstat (limited to 'usr')
-rwxr-xr-xusr/local/www/firewall_virtual_ip.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr/local/www/firewall_virtual_ip.php b/usr/local/www/firewall_virtual_ip.php
index c44c5ef..873f422 100755
--- a/usr/local/www/firewall_virtual_ip.php
+++ b/usr/local/www/firewall_virtual_ip.php
@@ -95,7 +95,7 @@ if ($_GET['act'] == "del") {
if (is_array($config['nat']['rule'])) {
foreach ($config['nat']['rule'] as $rule) {
if($rule['destination']['address'] <> "") {
- if ($rule['destination']['address'] == $a_vip[$_GET['id']]['ipaddr']) {
+ if ($rule['destination']['address'] == $a_vip[$_GET['id']]['subnet']) {
$input_errors[] = "This entry cannot be deleted because it is still referenced by at least one NAT mapping.";
break;
}
OpenPOWER on IntegriCloud