Project

General

Profile

« Previous | Next » 

Revision aadc5973

Added by Stephen Beaver almost 10 years ago

Fixed #5261
Corrected src/dst type logic

View differences:

src/usr/local/www/firewall_rules_edit.php
1242 1242
	))->setWidth(2);
1243 1243

  
1244 1244
	$ruleType = $pconfig[$type];
1245

  
1245 1246
	if ($pconfig[$type] == 'any') {
1246 1247
		$ruleType = 'any';
1247
	} elseif (is_specialnet($pconfig[$type])) {
1248
		$ruleType = 'network';
1249 1248
	} elseif ((is_ipaddrv6($pconfig[$type]) && $pconfig[$type.'mask'] == 128) ||
1250 1249
			(is_ipaddrv4($pconfig[$type]) && $pconfig[$type.'mask'] == 32) ||
1251 1250
			(is_alias($pconfig[$type]))) {
1252 1251
		$ruleType = 'single';
1252
	} else {
1253
		$ruleType = 'network';
1253 1254
	}
1254 1255

  
1255 1256
	$ruleValues = array(

Also available in: Unified diff