diff options
author | Renato Botelho <garga@FreeBSD.org> | 2014-08-05 12:43:34 -0300 |
---|---|---|
committer | Renato Botelho <garga@FreeBSD.org> | 2014-08-05 12:43:34 -0300 |
commit | 12c887006320a3d01a3f761eca2dfc8f64c41fa2 (patch) | |
tree | c2cc24e5c5abac444144fa68f6776e0a27193ed9 /usr/local/www/firewall_virtual_ip_edit.php | |
parent | 8e2a409171011bfc14149c5fa533d938f49eebba (diff) | |
download | pfsense-12c887006320a3d01a3f761eca2dfc8f64c41fa2.zip pfsense-12c887006320a3d01a3f761eca2dfc8f64c41fa2.tar.gz |
Allow to add ipalias vip to lo0, it should fix #3773
Diffstat (limited to 'usr/local/www/firewall_virtual_ip_edit.php')
-rw-r--r-- | usr/local/www/firewall_virtual_ip_edit.php | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/usr/local/www/firewall_virtual_ip_edit.php b/usr/local/www/firewall_virtual_ip_edit.php index 2a1e120..bf48e12 100644 --- a/usr/local/www/firewall_virtual_ip_edit.php +++ b/usr/local/www/firewall_virtual_ip_edit.php @@ -142,8 +142,7 @@ if ($_POST) { /* make sure new ip is within the subnet of a valid ip * on one of our interfaces (wan, lan optX) */ - switch ($_POST['mode']) { - case "carp": + if ($_POST['mode'] == 'carp') { /* verify against reusage of vhids */ $idtracker = 0; foreach($config['virtualip']['vip'] as $vip) { @@ -171,12 +170,8 @@ if ($_POST) { if ($_POST['interface'] == "lo0") $input_errors[] = gettext("For this type of vip localhost is not allowed."); - break; - default: - if ($_POST['interface'] == "lo0") - $input_errors[] = gettext("For this type of vip localhost is not allowed."); - break; - } + } else if ($_POST['mode'] != 'ipalias' && $_POST['interface'] == "lo0") + $input_errors[] = gettext("For this type of vip localhost is not allowed."); if (!$input_errors) { $vipent = array(); |