summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorErmal LUÇI <eri@pfsense.org>2015-01-12 12:27:41 +0100
committerErmal LUÇI <eri@pfsense.org>2015-01-12 12:27:41 +0100
commit9b255a367d7e55174dca5a7b6cf2a1f8b17d5fbf (patch)
tree6c7129b67797df38d4bb0e7473a39ab96391a85b
parent124299a347ecaf0e892214ec2ee0c82ce7d337e0 (diff)
downloadpfsense-9b255a367d7e55174dca5a7b6cf2a1f8b17d5fbf.zip
pfsense-9b255a367d7e55174dca5a7b6cf2a1f8b17d5fbf.tar.gz
Use this generation now of committing pipes directly and only rules to put on ruleset to avoid memory pressure and the timelimit will than be enforced by the caller
-rw-r--r--etc/inc/captiveportal.inc6
1 files changed, 1 insertions, 5 deletions
diff --git a/etc/inc/captiveportal.inc b/etc/inc/captiveportal.inc
index c83daf1..9fff606 100644
--- a/etc/inc/captiveportal.inc
+++ b/etc/inc/captiveportal.inc
@@ -1039,12 +1039,8 @@ function captiveportal_passthrumac_configure($lock = false) {
$rules = "";
if (is_array($config['captiveportal'][$cpzone]['passthrumac'])) {
- $nentries = count($config['captiveportal'][$cpzone]['passthrumac']);
foreach ($config['captiveportal'][$cpzone]['passthrumac'] as $macent) {
- if ($nentries > 100)
- $rules .= captiveportal_passthrumac_configure_entry($macent, true);
- else
- $rules .= captiveportal_passthrumac_configure_entry($macent);
+ $rules .= captiveportal_passthrumac_configure_entry($macent, true);
}
}
OpenPOWER on IntegriCloud