From 3504e10b0f98fd7f02a68dc3a22d0b150346e241 Mon Sep 17 00:00:00 2001 From: Renato Botelho Date: Tue, 13 Apr 2010 11:04:59 -0300 Subject: Use correct xml tag to compare with nat port forward destination address --- usr/local/www/firewall_virtual_ip.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'usr/local') 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; } -- cgit v1.1