diff options
author | Renato Botelho <renato.botelho@bluepex.com> | 2010-04-13 11:01:50 -0300 |
---|---|---|
committer | Renato Botelho <renato.botelho@bluepex.com> | 2010-04-13 11:01:50 -0300 |
commit | 2df3a71fe64721ee9208b4bd835736fc3913bbdd (patch) | |
tree | d890b09ca2b4624864d3d89a26b7a4b5f3a9e81b /usr/local | |
parent | 0e7dded1ad2dfbcaa94951918e09100cb6bd8dd8 (diff) | |
download | pfsense-2df3a71fe64721ee9208b4bd835736fc3913bbdd.zip pfsense-2df3a71fe64721ee9208b4bd835736fc3913bbdd.tar.gz |
On Virtual IPs, the ip is stored on subnet xml tag, use it to compare with external-address.
Diffstat (limited to 'usr/local')
-rwxr-xr-x | usr/local/www/firewall_virtual_ip.php | 2 |
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 6cd8879..2a01c91 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['external-address'] <> "") { - if ($rule['external-address'] == $a_vip[$_GET['id']]['ipaddr']) { + if ($rule['external-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; } |