From 9b255a367d7e55174dca5a7b6cf2a1f8b17d5fbf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ermal=20LU=C3=87I?= Date: Mon, 12 Jan 2015 12:27:41 +0100 Subject: 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 --- etc/inc/captiveportal.inc | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'etc') 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); } } -- cgit v1.1