summaryrefslogtreecommitdiffstats
path: root/usr/local/www/firewall_virtual_ip_edit.php
diff options
context:
space:
mode:
authorRenato Botelho <garga@FreeBSD.org>2014-01-23 10:05:23 -0200
committerRenato Botelho <garga@FreeBSD.org>2014-01-23 10:05:23 -0200
commit8467c588e48965a412e2a146b1fd033c3a4d7ea2 (patch)
treeb8acc2590f8f6c9d396a78a7995b75ac44b7bc9b /usr/local/www/firewall_virtual_ip_edit.php
parent505d5c7a5fda8e445c86fb7662be64304475f230 (diff)
downloadpfsense-8467c588e48965a412e2a146b1fd033c3a4d7ea2.zip
pfsense-8467c588e48965a412e2a146b1fd033c3a4d7ea2.tar.gz
Do not list the same CARP ip as an option for Interface
Diffstat (limited to 'usr/local/www/firewall_virtual_ip_edit.php')
-rwxr-xr-xusr/local/www/firewall_virtual_ip_edit.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/usr/local/www/firewall_virtual_ip_edit.php b/usr/local/www/firewall_virtual_ip_edit.php
index b9993d4..bf03403 100755
--- a/usr/local/www/firewall_virtual_ip_edit.php
+++ b/usr/local/www/firewall_virtual_ip_edit.php
@@ -388,7 +388,8 @@ function typesel_change() {
$interfaces = get_configured_interface_with_descr(false, true);
$carplist = get_configured_carp_interface_list();
foreach ($carplist as $cif => $carpip)
- $interfaces[$cif] = $carpip." (".get_vip_descr($carpip).")";
+ if ($carpip != $pconfig['subnet'])
+ $interfaces[$cif] = $carpip." (".get_vip_descr($carpip).")";
$interfaces['lo0'] = "Localhost";
foreach ($interfaces as $iface => $ifacename): ?>
<option value="<?=$iface;?>" <?php if ($iface == $pconfig['interface']) echo "selected=\"selected\""; ?>>
OpenPOWER on IntegriCloud