Project

General

Profile

« Previous | Next » 

Revision c6868a8f

Added by Ermal LUÇI almost 12 years ago

Unbreak limitrules and probably pfblocker errors. Spotted-by: Jim

View differences:

etc/inc/filter.inc
304 304
		return;
305 305
	}
306 306

  
307
	unset($rules, $limitrules);
308
	unset($rules_loading, $rules_error);
309

  
310 307
	@file_put_contents("{$g['tmp_path']}/rules.limits", $limitrules);
311 308
	mwexec("/sbin/pfctl -f {$g['tmp_path']}/rules.limits");
309
	unset($rules, $limitrules);
312 310

  
313 311
	if(isset($config['system']['developerspew'])) {
314 312
		$mt = microtime();
315 313
		echo "pfctl being called at $mt\n";
316 314
	}
315
	unset($rules_loading, $rules_error);
317 316
	$_grbg = exec("/sbin/pfctl -o basic -f {$g['tmp_path']}/rules.debug 2>&1", $rules_error, $rules_loading);
318 317
	if(isset($config['system']['developerspew'])) {
319 318
		$mt = microtime();

Also available in: Unified diff