diff options
author | Ermal <eri@pfsense.org> | 2012-08-01 08:04:49 +0000 |
---|---|---|
committer | Ermal <eri@pfsense.org> | 2012-08-01 08:04:49 +0000 |
commit | 74a4edc36f4bc686023066a82a76df3283760d3a (patch) | |
tree | 823ee504d114d4ac08013f44b80c5968da955243 | |
parent | 25fff26736ea57851b8622ecc910def3a7d37971 (diff) | |
download | pfsense-74a4edc36f4bc686023066a82a76df3283760d3a.zip pfsense-74a4edc36f4bc686023066a82a76df3283760d3a.tar.gz |
Correct mod_evasive setting per CP to confirm to what the CP page description says. Resolves #2270
-rw-r--r-- | etc/inc/system.inc | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/etc/inc/system.inc b/etc/inc/system.inc index cbd7361..811c036 100644 --- a/etc/inc/system.inc +++ b/etc/inc/system.inc @@ -842,11 +842,12 @@ function system_generate_lighty_config($filename, $captiveportal = ",\"mod_rewrite\""; $captive_portal_rewrite = "url.rewrite-once = ( \"(.*captiveportal.*)\" => \"$1\", \"(.*)\" => \"/index.php?zone={$captive_portal}&redirurl=$1\" )\n"; $captive_portal_module = ""; + $maxprocperip = $config['captiveportal'][$captive_portal]['maxprocperip']; if(empty($maxprocperip)) - $captive_portal_mod_evasive = ""; - else - $captive_portal_mod_evasive = "evasive.max-conns-per-ip = {$maxprocperip}"; + $maxprocperip = 4; + $captive_portal_mod_evasive = "evasive.max-conns-per-ip = {$maxprocperip}"; + $server_upload_dirs = "server.upload-dirs = ( \"{$g['tmp_path']}/captiveportal/\" )\n"; exec("mkdir -p {$g['tmp_path']}/captiveportal"); exec("chmod a-w {$g['tmp_path']}/captiveportal"); |