diff options
Diffstat (limited to 'usr/local/captiveportal')
-rwxr-xr-x | usr/local/captiveportal/index.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr/local/captiveportal/index.php b/usr/local/captiveportal/index.php index a4485ea..fc75e1e 100755 --- a/usr/local/captiveportal/index.php +++ b/usr/local/captiveportal/index.php @@ -300,9 +300,9 @@ function portal_allow($clientip,$clientmac,$username,$password = null, $attribut $ruleno = captiveportal_get_ipfw_passthru_ruleno($mac['mac']); if ($ruleno) { captiveportal_free_ipfw_ruleno($ruleno, true); - $macrules .= "delete {$ruleno}"; + $macrules .= "delete {$ruleno}\n"; ++$ruleno; - $macrules .= "delete {$ruleno}"; + $macrules .= "delete {$ruleno}\n"; } unset($config['captiveportal']['passthrumac'][$idx]); $mac['mac'] = $clientmac; |