From fcb816d9d0ee3488b60c6577c9236452f23832c6 Mon Sep 17 00:00:00 2001 From: Seth Mos Date: Wed, 24 Aug 2011 14:30:02 +0200 Subject: Only show gateways from the same address family on the groups edit page. Ticket #1659 --- usr/local/www/system_gateway_groups_edit.php | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'usr/local/www/system_gateway_groups_edit.php') diff --git a/usr/local/www/system_gateway_groups_edit.php b/usr/local/www/system_gateway_groups_edit.php index 10f001e..f7814cf 100755 --- a/usr/local/www/system_gateway_groups_edit.php +++ b/usr/local/www/system_gateway_groups_edit.php @@ -165,6 +165,11 @@ include("head.inc"); $gateway) { + if(!empty($pconfig['item'])) { + $af = explode("|", $pconfig['item'][0]); + if(!validate_address_family(lookup_gateway_ip_by_name($af[0]), $gateway['gateway'])) + continue; + } $selected = array(); $interface = $gateway['interface']; foreach((array)$pconfig['item'] as $item) { -- cgit v1.1