Project

General

Profile

« Previous | Next » 

Revision da9b711a

Added by Scott Ullrich over 19 years ago

MFC 8487
Work around an interesting bug when using not in rules by expanding the alias value since we cannot add the ! directive into the already defined aliases at the top which already have { } surrounding it

View differences:

etc/inc/filter.inc
1121 1121
					$not = "";
1122 1122

  
1123 1123
				if (stristr($expsrc, "$"))
1124
					$src = "{$not} {$expsrc}";
1124
					$src = "{$not} " . alias_expand_value($rule['source']['address']);
1125 1125
				else
1126 1126
					$src = "{ {$not} {$expsrc} }";
1127 1127
			}
......
1198 1198
					$not = "";
1199 1199

  
1200 1200
				if (stristr($expdst, "$"))
1201
					$dst = "{$not} {$expdst}";
1201
					$dst = "{$not} " . alias_expand_value($rule['destination']['address']);
1202 1202
				else
1203 1203
					$dst = "{ {$not} {$expdst} }";
1204 1204
			}
......
2139 2139
	return " # error - {$adr['network']} ";
2140 2140
	
2141 2141
}
2142
?>
2142
?>

Also available in: Unified diff