diff options
author | Ermal LUÇI <eri@pfsense.org> | 2015-02-11 20:34:47 +0100 |
---|---|---|
committer | Ermal LUÇI <eri@pfsense.org> | 2015-02-11 20:34:47 +0100 |
commit | 657932fd09b1bbe7fe43eba1c01e161ad6e766ed (patch) | |
tree | 9b2a0f4c0a4eacfd945e0459ea4bfe100a4b99a9 /usr | |
parent | 2de650f6117f4b80c3db4f9b46ad83d75d5b9130 (diff) | |
download | pfsense-657932fd09b1bbe7fe43eba1c01e161ad6e766ed.zip pfsense-657932fd09b1bbe7fe43eba1c01e161ad6e766ed.tar.gz |
Remove dead code and unset vars so next time the code works properly avoiding cache issues.
Diffstat (limited to 'usr')
-rw-r--r-- | usr/local/www/firewall_virtual_ip_edit.php | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/usr/local/www/firewall_virtual_ip_edit.php b/usr/local/www/firewall_virtual_ip_edit.php index a26f61a..5e5692b 100644 --- a/usr/local/www/firewall_virtual_ip_edit.php +++ b/usr/local/www/firewall_virtual_ip_edit.php @@ -180,16 +180,6 @@ if ($_POST) { if (empty($_POST['password'])) $input_errors[] = gettext("You must specify a CARP password that is shared between the two VHID members."); - if (is_ipaddrv4($_POST['subnet'])) { - $parent_ip = get_interface_ip($_POST['interface']); - $parent_sn = get_interface_subnet($_POST['interface']); - $subnet = gen_subnet($parent_ip, $parent_sn); - } else if (is_ipaddrv6($_POST['subnet'])) { - $parent_ip = get_interface_ipv6($_POST['interface']); - $parent_sn = get_interface_subnetv6($_POST['interface']); - $subnet = gen_subnetv6($parent_ip, $parent_sn); - } - if ($_POST['interface'] == 'lo0') $input_errors[] = gettext("For this type of vip localhost is not allowed."); else if (strpos($_POST['interface'], '_vip')) @@ -211,6 +201,7 @@ if ($_POST) { $cannot_find = $_POST['subnet'] . "/" . $_POST['subnet_bits'] ; $input_errors[] = sprintf(gettext("Sorry, we could not locate an interface with a matching subnet for %s. Please add an IP alias in this subnet on this interface."),$cannot_find); } + unset($parent_ip, $parent_sn, $subnet); } break; default: |