diff options
author | Ermal <eri@pfsense.org> | 2011-07-27 20:39:56 +0000 |
---|---|---|
committer | Ermal <eri@pfsense.org> | 2011-07-27 20:40:12 +0000 |
commit | 8b618d9170cd8190c81a0c64519e086ad816c39d (patch) | |
tree | 494588e0a50b83daa23c0fd9e10042e43913eaa7 | |
parent | 3ab1b036b81de890209a81953a1f5ec917ffeda9 (diff) | |
download | pfsense-8b618d9170cd8190c81a0c64519e086ad816c39d.zip pfsense-8b618d9170cd8190c81a0c64519e086ad816c39d.tar.gz |
Correct check as per http://forum.pfsense.org/index.php/topic,39155.0.html
-rw-r--r-- | etc/inc/system.inc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/etc/inc/system.inc b/etc/inc/system.inc index 75ba3da..60ab262 100644 --- a/etc/inc/system.inc +++ b/etc/inc/system.inc @@ -789,7 +789,7 @@ function system_generate_lighty_config($filename, $captive_portal_rewrite = "url.rewrite-once = ( \"(.*captiveportal.*)\" => \"$1\", \"(.*)\" => \"/index.php?redirurl=$1\" )\n"; $captive_portal_module = ""; $maxprocperip = $config['captiveportal']['maxprocperip']; - if(!$maxprocperip and $maxprocperip > 0) + if($maxprocperip and $maxprocperip > 0) $captive_portal_mod_evasive = "evasive.max-conns-per-ip = {$maxprocperip}"; else $captive_portal_mod_evasive = ""; |