summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--etc/inc/captiveportal.inc4
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() {
OpenPOWER on IntegriCloud