summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2005-07-09 23:52:35 +0000
committerScott Ullrich <sullrich@pfsense.org>2005-07-09 23:52:35 +0000
commit94f0b2b917ebc7ed95a9f414f197403b94a2774a (patch)
treef5e333251ed9a750d2ff5aa8dff7544ce36ba7ab
parentecfc831a3af12ede9920b3b0e20ec52e4f6b7dc9 (diff)
downloadpfsense-94f0b2b917ebc7ed95a9f414f197403b94a2774a.zip
pfsense-94f0b2b917ebc7ed95a9f414f197403b94a2774a.tar.gz
Do not run expiretable if timeout == 0
-rw-r--r--etc/inc/captiveportal.inc6
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`;
OpenPOWER on IntegriCloud