summaryrefslogtreecommitdiffstats
path: root/usr/local
diff options
context:
space:
mode:
authorRenato Botelho <garga@FreeBSD.org>2013-07-06 16:38:14 -0300
committerRenato Botelho <garga@FreeBSD.org>2013-07-06 16:38:14 -0300
commitb91d0be3863d55bbfe9a31d855b4a2aedae34d92 (patch)
tree91e1465ed279bbcf8fe45f6dd148a73d78d7ecf9 /usr/local
parentff9f40d5de7d47f8827083be670a1ad698252f4c (diff)
downloadpfsense-b91d0be3863d55bbfe9a31d855b4a2aedae34d92.zip
pfsense-b91d0be3863d55bbfe9a31d855b4a2aedae34d92.tar.gz
Remove unecessary variable
Diffstat (limited to 'usr/local')
-rwxr-xr-xusr/local/www/firewall_virtual_ip.php6
1 files changed, 2 insertions, 4 deletions
diff --git a/usr/local/www/firewall_virtual_ip.php b/usr/local/www/firewall_virtual_ip.php
index 3a3cb3d..784d1bf 100755
--- a/usr/local/www/firewall_virtual_ip.php
+++ b/usr/local/www/firewall_virtual_ip.php
@@ -110,13 +110,11 @@ if ($_GET['act'] == "del") {
if (is_ipaddrv6($a_vip[$_GET['id']]['subnet'])) {
$is_ipv6 = true;
$subnet = gen_subnetv6($a_vip[$_GET['id']]['subnet'], $a_vip[$_GET['id']]['subnet_bits']);
- $if_subnet_bits = get_interface_subnetv6($a_vip[$_GET['id']]['interface']);
- $if_subnet = gen_subnetv6(get_interface_ipv6($a_vip[$_GET['id']]['interface']), $if_subnet_bits);
+ $if_subnet = gen_subnetv6(get_interface_ipv6($a_vip[$_GET['id']]['interface']), get_interface_subnetv6($a_vip[$_GET['id']]['interface']));
} else {
$is_ipv6 = false;
$subnet = gen_subnet($a_vip[$_GET['id']]['subnet'], $a_vip[$_GET['id']]['subnet_bits']);
- $if_subnet_bits = get_interface_subnet($a_vip[$_GET['id']]['interface']);
- $if_subnet = gen_subnet(get_interface_ip($a_vip[$_GET['id']]['interface']), $if_subnet_bits);
+ $if_subnet = gen_subnet(get_interface_ip($a_vip[$_GET['id']]['interface']), get_interface_subnet($a_vip[$_GET['id']]['interface']));
}
$subnet .= "/" . $a_vip[$_GET['id']]['subnet_bits'];
OpenPOWER on IntegriCloud