Project

General

Profile

« Previous | Next » 

Revision 94f0b2b9

Added by Scott Ullrich about 20 years ago

Do not run expiretable if timeout == 0

View differences:

etc/inc/captiveportal.inc
250 250

  
251 251
	$radiusservers = captiveportal_get_radius_servers();
252 252

  
253
	/* launch expiretable and remove entries older than $timeout */
254
	mwexec("/usr/bin/nice -n20 /usr/local/sbin/expiretable -v -t " . $idletimeout . " captiveportal");
253
	if($idletimeout <> 0) (
254
		/* launch expire table and remove entries older than $timeout */
255
		mwexec("/usr/bin/nice -n20 /usr/local/sbin/expiretable -v -t " . $idletimeout . " captiveportal");
256
	}
255 257

  
256 258
	$after_prune = `/sbin/pfctl -t captiveportal -T show`;
257 259

  

Also available in: Unified diff