diff options
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; } |