diff options
author | Renato Botelho <renato.botelho@bluepex.com> | 2010-04-13 11:04:59 -0300 |
---|---|---|
committer | Renato Botelho <renato.botelho@bluepex.com> | 2010-04-13 11:04:59 -0300 |
commit | 3504e10b0f98fd7f02a68dc3a22d0b150346e241 (patch) | |
tree | 3365654ce4af30aa3f142a4a919b8f9a94102254 /usr | |
parent | 09579bb0dd964851dddb3511d68bcc0162844c14 (diff) | |
download | pfsense-3504e10b0f98fd7f02a68dc3a22d0b150346e241.zip pfsense-3504e10b0f98fd7f02a68dc3a22d0b150346e241.tar.gz |
Use correct xml tag to compare with nat port forward destination address
Diffstat (limited to 'usr')
-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 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; } |