Project

General

Profile

« Previous | Next » 

Revision a1c10b7f

Added by Seth Mos almost 14 years ago

Properly fix the address family check for gateway groups Ticket #1659

View differences:

usr/local/www/firewall_rules_edit.php
1286 1286
					/* add gateway groups to the list */
1287 1287
					if (is_array($config['gateways']['gateway_group'])) {
1288 1288
						foreach($config['gateways']['gateway_group'] as $gw_group) {
1289
							if(($pconfig['ipprotocol'] == "inet6") && !is_ipaddrv6($gw_group[0]['gwip']))
1289
							$af = explode("|", $gw_group['item'][0]);
1290
							if(($pconfig['ipprotocol'] == "inet6") && !is_ipaddrv6(lookup_gateway_ip_by_name($af[0])))
1290 1291
								continue;
1291
							if(($pconfig['ipprotocol'] == "inet") && !is_ipaddrv4($gw_group[0]['gwip']))
1292
							if(($pconfig['ipprotocol'] == "inet") && !is_ipaddrv4(lookup_gateway_ip_by_name($af[0])))
1292 1293
								continue;
1293 1294
							if($gw_group['name'] == "")
1294 1295
								continue;

Also available in: Unified diff