diff options
author | Renato Botelho <garga@FreeBSD.org> | 2013-07-06 16:38:14 -0300 |
---|---|---|
committer | Renato Botelho <garga@FreeBSD.org> | 2013-07-06 16:38:14 -0300 |
commit | b91d0be3863d55bbfe9a31d855b4a2aedae34d92 (patch) | |
tree | 91e1465ed279bbcf8fe45f6dd148a73d78d7ecf9 /usr/local | |
parent | ff9f40d5de7d47f8827083be670a1ad698252f4c (diff) | |
download | pfsense-b91d0be3863d55bbfe9a31d855b4a2aedae34d92.zip pfsense-b91d0be3863d55bbfe9a31d855b4a2aedae34d92.tar.gz |
Remove unecessary variable
Diffstat (limited to 'usr/local')
-rwxr-xr-x | usr/local/www/firewall_virtual_ip.php | 6 |
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']; |