Project

General

Profile

« Previous | Next » 

Revision fcb816d9

Added by Seth Mos almost 14 years ago

Only show gateways from the same address family on the groups edit page. Ticket #1659

View differences:

usr/local/www/system_gateway_groups_edit.php
165 165
                  <td width="78%" class="vtable"> 
166 166
		<?php
167 167
			foreach($a_gateways as $gwname => $gateway) {
168
				if(!empty($pconfig['item'])) {
169
					$af = explode("|", $pconfig['item'][0]);
170
					if(!validate_address_family(lookup_gateway_ip_by_name($af[0]), $gateway['gateway']))
171
						continue;
172
				}
168 173
				$selected = array();
169 174
				$interface = $gateway['interface'];
170 175
				foreach((array)$pconfig['item'] as $item) {

Also available in: Unified diff