diff options
author | Renato Botelho <renato.botelho@bluepex.com> | 2010-04-12 11:10:04 -0300 |
---|---|---|
committer | Renato Botelho <renato.botelho@bluepex.com> | 2010-04-12 11:10:04 -0300 |
commit | 93e485e3c6d1e304bba7108e62bce897cb1a15d0 (patch) | |
tree | 98f6d7eb9ad070247dddc485b0d56ec55039eb24 /usr/local/www/firewall_virtual_ip.php | |
parent | b52d3aa509a54854a0fccd7685f4db12ad5fc15f (diff) | |
download | pfsense-93e485e3c6d1e304bba7108e62bce897cb1a15d0.zip pfsense-93e485e3c6d1e304bba7108e62bce897cb1a15d0.tar.gz |
Teach more code to deal with new NAT Port Forwarding xml tags
Diffstat (limited to 'usr/local/www/firewall_virtual_ip.php')
-rwxr-xr-x | usr/local/www/firewall_virtual_ip.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr/local/www/firewall_virtual_ip.php b/usr/local/www/firewall_virtual_ip.php index 6cd8879..c44c5ef 100755 --- a/usr/local/www/firewall_virtual_ip.php +++ b/usr/local/www/firewall_virtual_ip.php @@ -94,8 +94,8 @@ if ($_GET['act'] == "del") { /* make sure no inbound NAT mappings reference this entry */ if (is_array($config['nat']['rule'])) { foreach ($config['nat']['rule'] as $rule) { - if($rule['external-address'] <> "") { - if ($rule['external-address'] == $a_vip[$_GET['id']]['ipaddr']) { + if($rule['destination']['address'] <> "") { + if ($rule['destination']['address'] == $a_vip[$_GET['id']]['ipaddr']) { $input_errors[] = "This entry cannot be deleted because it is still referenced by at least one NAT mapping."; break; } |