diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2005-07-09 23:52:35 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2005-07-09 23:52:35 +0000 |
commit | 94f0b2b917ebc7ed95a9f414f197403b94a2774a (patch) | |
tree | f5e333251ed9a750d2ff5aa8dff7544ce36ba7ab /etc/inc/captiveportal.inc | |
parent | ecfc831a3af12ede9920b3b0e20ec52e4f6b7dc9 (diff) | |
download | pfsense-94f0b2b917ebc7ed95a9f414f197403b94a2774a.zip pfsense-94f0b2b917ebc7ed95a9f414f197403b94a2774a.tar.gz |
Do not run expiretable if timeout == 0
Diffstat (limited to 'etc/inc/captiveportal.inc')
-rw-r--r-- | etc/inc/captiveportal.inc | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/etc/inc/captiveportal.inc b/etc/inc/captiveportal.inc index 459284c..bb50594 100644 --- a/etc/inc/captiveportal.inc +++ b/etc/inc/captiveportal.inc @@ -250,8 +250,10 @@ function captiveportal_prune_old() { $radiusservers = captiveportal_get_radius_servers(); - /* launch expiretable and remove entries older than $timeout */ - mwexec("/usr/bin/nice -n20 /usr/local/sbin/expiretable -v -t " . $idletimeout . " captiveportal"); + if($idletimeout <> 0) ( + /* launch expire table and remove entries older than $timeout */ + mwexec("/usr/bin/nice -n20 /usr/local/sbin/expiretable -v -t " . $idletimeout . " captiveportal"); + } $after_prune = `/sbin/pfctl -t captiveportal -T show`; |