diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2011-01-25 13:03:46 -0500 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2011-01-25 13:03:46 -0500 |
commit | 75d12406a03c2d8b0ec9d6ae52f7446fdef1ad8f (patch) | |
tree | cddb8314115b17b50a243100b1af5029048b3ef0 /etc | |
parent | 8b73cc7ee50b918c83b32ea3d664baf86d30692b (diff) | |
download | pfsense-75d12406a03c2d8b0ec9d6ae52f7446fdef1ad8f.zip pfsense-75d12406a03c2d8b0ec9d6ae52f7446fdef1ad8f.tar.gz |
Launch dnswatch correctly.
Diffstat (limited to 'etc')
-rw-r--r-- | etc/inc/captiveportal.inc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/etc/inc/captiveportal.inc b/etc/inc/captiveportal.inc index 08e325d..e6d1591 100644 --- a/etc/inc/captiveportal.inc +++ b/etc/inc/captiveportal.inc @@ -1068,10 +1068,10 @@ function setup_dnsfilter_entries() { $fd = fopen($cp_filterdns_filename, "w"); if (is_array($config['captiveportal']['allowedhostname'])) foreach ($config['captiveportal']['allowedhostname'] as $hostnameent) - fwrite($fd, $hostnameent . "\n"); + fwrite($fd, $hostnameent['hostname'] . "\n"); fclose($fd); killbypid("{$g['tmp_path']}/dnswatch-cpah.pid"); - mwexec("/usr/local/sbin/dnswatch {$g['tmp_path']}/dnswatch-cpah.pid 300 '/etc/rc.captiveportal_configure' {$g['varetc_path']}/dnswatch-captiveportal.conf"); + mwexec("/usr/local/sbin/dnswatch {$g['tmp_path']}/dnswatch-cpah.pid 300 '/etc/rc.captiveportal_configure' {$cp_filterdns_filename}"); } function captiveportal_allowedhostname_configure() { |