From e06b7fa20eb06d3bd17bd25c622138dc5622a5ee Mon Sep 17 00:00:00 2001 From: Ermal Date: Tue, 1 Jun 2010 20:33:58 +0000 Subject: Do not overwrite previous rules. --- usr/local/captiveportal/index.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'usr/local/captiveportal') 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; -- cgit v1.1