diff options
author | Ermal LUÇI <eri@pfsense.org> | 2015-06-19 17:35:31 +0200 |
---|---|---|
committer | Ermal LUÇI <eri@pfsense.org> | 2015-06-19 17:35:31 +0200 |
commit | 3378289af3f39b231de2c26e298d85d3eca4c835 (patch) | |
tree | 95d84a2d680bd9e940c050f176982abc80dfab75 /etc | |
parent | 320ed23cef4e60d143f690732ae0b08ab5487726 (diff) | |
download | pfsense-3378289af3f39b231de2c26e298d85d3eca4c835.zip pfsense-3378289af3f39b231de2c26e298d85d3eca4c835.tar.gz |
Ticket #4746 Correctly set global variables to be used by hostnames cod epaths
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 1d95971..074b0dc 100644 --- a/etc/inc/captiveportal.inc +++ b/etc/inc/captiveportal.inc @@ -1175,7 +1175,7 @@ function captiveportal_allowedip_configure_entry($ipent, $ishostname = false) { } function captiveportal_allowedhostname_configure() { - global $config, $g, $cpzone; + global $config, $g, $cpzone, $cpzoneid; $rules = ""; if (is_array($config['captiveportal'][$cpzone]['allowedhostname'])) { @@ -1192,7 +1192,7 @@ function captiveportal_allowedhostname_configure() { if (isvalidpid("{$g['varrun_path']}/filterdns-{$cpzone}-cpah.pid")) { sigkillbypid("{$g['varrun_path']}/filterdns-{$cpzone}-cpah.pid", "HUP"); } else { - mwexec("/usr/local/sbin/filterdns -p {$g['varrun_path']}/filterdns-{$cpzone}-cpah.pid -i 300 -c {$cp_filterdns_filename} -y {$cpzone} -d 1"); + mwexec("/usr/local/sbin/filterdns -p {$g['varrun_path']}/filterdns-{$cpzone}-cpah.pid -i 300 -c {$cp_filterdns_filename} -y {$cpzoneid} -d 1"); } } else { killbypid("{$g['varrun_path']}/filterdns-{$cpzone}-cpah.pid"); |