summaryrefslogtreecommitdiffstats
path: root/usr/local/captiveportal
diff options
context:
space:
mode:
authorErmal <eri@pfsense.org>2010-06-01 20:33:58 +0000
committerErmal <eri@pfsense.org>2010-06-01 20:33:58 +0000
commite06b7fa20eb06d3bd17bd25c622138dc5622a5ee (patch)
treefc529530b7b4064f2ad73e036dd7884cd2568d19 /usr/local/captiveportal
parent4d349edec5f20b7f94d5ed0c97f382b9e082081f (diff)
downloadpfsense-e06b7fa20eb06d3bd17bd25c622138dc5622a5ee.zip
pfsense-e06b7fa20eb06d3bd17bd25c622138dc5622a5ee.tar.gz
Do not overwrite previous rules.
Diffstat (limited to 'usr/local/captiveportal')
-rwxr-xr-xusr/local/captiveportal/index.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr/local/captiveportal/index.php b/usr/local/captiveportal/index.php
index 80bbc3f..a4485ea 100755
--- a/usr/local/captiveportal/index.php
+++ b/usr/local/captiveportal/index.php
@@ -307,7 +307,7 @@ function portal_allow($clientip,$clientmac,$username,$password = null, $attribut
unset($config['captiveportal']['passthrumac'][$idx]);
$mac['mac'] = $clientmac;
$config['captiveportal']['passthrumac'][] = $mac;
- $macrules = captiveportal_passthrumac_configure_entry($mac);
+ $macrules .= captiveportal_passthrumac_configure_entry($mac);
file_put_contents("{$g['tmp_path']}/macentry.rules.tmp", $macrules);
mwexec("/sbin/ipfw -q {$g['tmp_path']}/macentry.rules.tmp");
$writecfg = true;
OpenPOWER on IntegriCloud