diff options
author | Chris Buechler <cmb@pfsense.org> | 2016-02-10 15:40:07 -0600 |
---|---|---|
committer | Chris Buechler <cmb@pfsense.org> | 2016-02-10 15:40:32 -0600 |
commit | 95b07096d2a4d8c81452ab7ee8dc468b1888ef0f (patch) | |
tree | 1eb5319349c58130b236f3baad629d0fef19c98f /src/usr/local/www/system_gateway_groups_edit.php | |
parent | 89c04db69fcaa918ffb0a6f1aa2883e67178a9f9 (diff) | |
download | pfsense-95b07096d2a4d8c81452ab7ee8dc468b1888ef0f.zip pfsense-95b07096d2a4d8c81452ab7ee8dc468b1888ef0f.tar.gz |
Only show VIPs on 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.php | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/usr/local/www/system_gateway_groups_edit.php b/src/usr/local/www/system_gateway_groups_edit.php index 3d4054b..8da6bc5 100644 --- a/src/usr/local/www/system_gateway_groups_edit.php +++ b/src/usr/local/www/system_gateway_groups_edit.php @@ -190,14 +190,17 @@ function build_gateway_protocol_map (&$a_gateways) { } function build_vip_list($family = 'all') { + global $gateway; $list = array('address' => gettext('Interface Address')); $viplist = get_configured_vip_list($family); foreach ($viplist as $vip => $address) { - $list[$vip] = "$address"; - if (get_vip_descr($address)) { - $list[$vip] .= " (". get_vip_descr($address) .")"; + if ($gateway['friendlyiface'] == get_configured_vip_interface($vip)) { + $list[$vip] = "$address"; + if (get_vip_descr($address)) { + $list[$vip] .= " (". get_vip_descr($address) .")"; + } } } |