diff options
author | Ermal <eri@pfsense.org> | 2013-02-13 18:56:42 +0000 |
---|---|---|
committer | Ermal <eri@pfsense.org> | 2013-02-13 18:56:42 +0000 |
commit | 837a35364708ca8c9e952d3321f353049a0dc57e (patch) | |
tree | 8ade6ccea183227fd9cbd1966bd1686a33d5d53f | |
parent | 13e64b47aa969699c9d5a1fab5180925ac85ebe9 (diff) | |
download | pfsense-837a35364708ca8c9e952d3321f353049a0dc57e.zip pfsense-837a35364708ca8c9e952d3321f353049a0dc57e.tar.gz |
Properly configure allowed hostnames
-rwxr-xr-x | usr/local/www/services_captiveportal_hostname_edit.php | 6 |
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; |