diff options
author | Ermal <eri@pfsense.org> | 2010-06-01 20:33:58 +0000 |
---|---|---|
committer | Ermal <eri@pfsense.org> | 2010-06-01 20:33:58 +0000 |
commit | e06b7fa20eb06d3bd17bd25c622138dc5622a5ee (patch) | |
tree | fc529530b7b4064f2ad73e036dd7884cd2568d19 /usr/local/captiveportal | |
parent | 4d349edec5f20b7f94d5ed0c97f382b9e082081f (diff) | |
download | pfsense-e06b7fa20eb06d3bd17bd25c622138dc5622a5ee.zip pfsense-e06b7fa20eb06d3bd17bd25c622138dc5622a5ee.tar.gz |
Do not overwrite previous rules.
Diffstat (limited to 'usr/local/captiveportal')
-rwxr-xr-x | usr/local/captiveportal/index.php | 2 |
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; |