diff options
Diffstat (limited to 'usr/local')
-rwxr-xr-x | usr/local/www/system_gateway_groups_edit.php | 5 |
1 files changed, 5 insertions, 0 deletions
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"); <td width="78%" class="vtable"> <?php foreach($a_gateways as $gwname => $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) { |