summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2006-04-07 01:26:14 +0000
committerScott Ullrich <sullrich@pfsense.org>2006-04-07 01:26:14 +0000
commit9b5a1292f07c1bd8332bcf2aa459ae741509739d (patch)
tree50752a36cd5c38d04c9492ad4f3262e1caecf6d1
parentc8cd0a5e9ad3429a09ec43ed7f158a50cc6688d0 (diff)
downloadpfsense-9b5a1292f07c1bd8332bcf2aa459ae741509739d.zip
pfsense-9b5a1292f07c1bd8332bcf2aa459ae741509739d.tar.gz
Honour $maxproc Found-by: PHPEclipse
-rw-r--r--etc/inc/captiveportal.inc12
1 files changed, 6 insertions, 6 deletions
diff --git a/etc/inc/captiveportal.inc b/etc/inc/captiveportal.inc
index acc1461..568fbe9 100644
--- a/etc/inc/captiveportal.inc
+++ b/etc/inc/captiveportal.inc
@@ -184,7 +184,12 @@ EOD;
* addresses.
*/
$use_fastcgi = false;
-
+
+ if ($config['captiveportal']['maxproc'])
+ $maxproc = $config['captiveportal']['maxproc'];
+ else
+ $maxproc = 16;
+
if(isset($config['captiveportal']['httpslogin'])) {
$cert = base64_decode($config['captiveportal']['certificate']);
$key = base64_decode($config['captiveportal']['private-key']);
@@ -194,11 +199,6 @@ EOD;
"cert-portal.pem", "1", $maxproc, $use_fastcgi, true);
}
- if ($config['captiveportal']['maxproc'])
- $maxproc = $config['captiveportal']['maxproc'];
- else
- $maxproc = 16;
-
/* generate lighttpd configuration */
system_generate_lighty_config("{$g['varetc_path']}/lighty-CaptivePortal.conf",
"", "", "lighty-CaptivePortal.pid", "8000", "/usr/local/captiveportal/",
OpenPOWER on IntegriCloud