diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2006-04-07 01:26:14 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2006-04-07 01:26:14 +0000 |
commit | 9b5a1292f07c1bd8332bcf2aa459ae741509739d (patch) | |
tree | 50752a36cd5c38d04c9492ad4f3262e1caecf6d1 | |
parent | c8cd0a5e9ad3429a09ec43ed7f158a50cc6688d0 (diff) | |
download | pfsense-9b5a1292f07c1bd8332bcf2aa459ae741509739d.zip pfsense-9b5a1292f07c1bd8332bcf2aa459ae741509739d.tar.gz |
Honour $maxproc
Found-by: PHPEclipse
-rw-r--r-- | etc/inc/captiveportal.inc | 12 |
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/", |