summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xusr/local/www/services_captiveportal_hostname_edit.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/usr/local/www/services_captiveportal_hostname_edit.php b/usr/local/www/services_captiveportal_hostname_edit.php
index 5be6aa1..5fd6168 100755
--- a/usr/local/www/services_captiveportal_hostname_edit.php
+++ b/usr/local/www/services_captiveportal_hostname_edit.php
@@ -138,8 +138,10 @@ if ($_POST) {
write_config();
- captiveportal_allowedip_configure_entry($ip, true);
- captiveportal_allowedhostname_configure();
+ $rules = captiveportal_allowedhostname_configure();
+ @file_put_contents("{$g['tmp_path']}/hostname_rules", $rules);
+ mwexec("/sbin/ipfw -x {$cpzone} {$g['tmp_path']}/hostname_rules");
+ unset($rules);
header("Location: services_captiveportal_hostname.php?zone={$cpzone}");
exit;
OpenPOWER on IntegriCloud