summaryrefslogtreecommitdiffstats
path: root/etc/inc
diff options
context:
space:
mode:
Diffstat (limited to 'etc/inc')
-rw-r--r--etc/inc/captiveportal.inc10
1 files changed, 3 insertions, 7 deletions
diff --git a/etc/inc/captiveportal.inc b/etc/inc/captiveportal.inc
index 710788b..3964b40 100644
--- a/etc/inc/captiveportal.inc
+++ b/etc/inc/captiveportal.inc
@@ -1028,13 +1028,9 @@ 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);
- }
+ $tmprules = array_map('captiveportal_passthrumac_configure_entry', $config['captiveportal'][$cpzone]['passthrumac']);
+ $rules = implode("\n", $tmprules);
+ unset($tmprules);
}
return $rules;
OpenPOWER on IntegriCloud