diff options
author | Chris Buechler <cmb@pfsense.org> | 2016-02-05 20:08:36 -0600 |
---|---|---|
committer | Chris Buechler <cmb@pfsense.org> | 2016-02-05 20:08:36 -0600 |
commit | c9bcaae1d3a2b3fb5c5ae7afbca7f577a0360358 (patch) | |
tree | 210aaac3bcc33f8ac6ec27b1799a4f2d322a802b /src/usr | |
parent | 70648bdb731e868d4b1f4cadaacf97b7b0fa831c (diff) | |
download | pfsense-c9bcaae1d3a2b3fb5c5ae7afbca7f577a0360358.zip pfsense-c9bcaae1d3a2b3fb5c5ae7afbca7f577a0360358.tar.gz |
Only show VIPs associated with the correct interface. Ticket #5844
Diffstat (limited to 'src/usr')
-rw-r--r-- | src/usr/local/www/system_gateway_groups_edit.php | 9 |
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; |