summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorErmal <eri@pfsense.org>2011-07-27 20:39:56 +0000
committerErmal <eri@pfsense.org>2011-07-27 20:40:12 +0000
commit8b618d9170cd8190c81a0c64519e086ad816c39d (patch)
tree494588e0a50b83daa23c0fd9e10042e43913eaa7 /etc
parent3ab1b036b81de890209a81953a1f5ec917ffeda9 (diff)
downloadpfsense-8b618d9170cd8190c81a0c64519e086ad816c39d.zip
pfsense-8b618d9170cd8190c81a0c64519e086ad816c39d.tar.gz
Correct check as per http://forum.pfsense.org/index.php/topic,39155.0.html
Diffstat (limited to 'etc')
-rw-r--r--etc/inc/system.inc2
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 = "";
OpenPOWER on IntegriCloud