summaryrefslogtreecommitdiffstats
path: root/src/usr/local/www/system_gateway_groups_edit.php
diff options
context:
space:
mode:
authorChris Buechler <cmb@pfsense.org>2016-02-05 20:08:36 -0600
committerChris Buechler <cmb@pfsense.org>2016-02-05 20:08:36 -0600
commitc9bcaae1d3a2b3fb5c5ae7afbca7f577a0360358 (patch)
tree210aaac3bcc33f8ac6ec27b1799a4f2d322a802b /src/usr/local/www/system_gateway_groups_edit.php
parent70648bdb731e868d4b1f4cadaacf97b7b0fa831c (diff)
downloadpfsense-c9bcaae1d3a2b3fb5c5ae7afbca7f577a0360358.zip
pfsense-c9bcaae1d3a2b3fb5c5ae7afbca7f577a0360358.tar.gz
Only show VIPs associated with the correct interface. Ticket #5844
Diffstat (limited to 'src/usr/local/www/system_gateway_groups_edit.php')
-rw-r--r--src/usr/local/www/system_gateway_groups_edit.php9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/usr/local/www/system_gateway_groups_edit.php b/src/usr/local/www/system_gateway_groups_edit.php
index 3646cf9..b46775d 100644
--- a/src/usr/local/www/system_gateway_groups_edit.php
+++ b/src/usr/local/www/system_gateway_groups_edit.php
@@ -190,7 +190,7 @@ function build_gateway_protocol_map (&$a_gateways) {
}
function build_carp_list() {
- global $carplist;
+ global $carplist, $gateway;
$list = array('address' => gettext('Interface Address'));
@@ -201,8 +201,9 @@ function build_carp_list() {
if (($gateway['ipprotocol'] == "inet6") && (!is_ipaddrv6($address))) {
continue;
}
-
- $list[$vip] = "$vip - $address";
+ if ($gateway['friendlyiface'] == link_carp_interface_to_parent($vip)) {
+ $list[$vip] = "$vip - $address";
+ }
}
return($list);
@@ -231,7 +232,7 @@ $section->addInput(new Form_Input(
));
-$carplist = get_configured_carp_interface_list($interface);
+$carplist = get_configured_carp_interface_list();
$row = 0;
$numrows = count($a_gateways) - 1;
OpenPOWER on IntegriCloud