summaryrefslogtreecommitdiffstats
path: root/src/etc/inc/unbound.inc
diff options
context:
space:
mode:
authorPhil Davis <phil.davis@inf.org>2015-11-10 10:39:24 +0545
committerPhil Davis <phil.davis@inf.org>2015-11-10 10:39:24 +0545
commitab8f10f26bd27160294c5dcb94f6a5b2e8b67535 (patch)
treed9a87e1f4b51aa5b13c336a98909afde048ec50e /src/etc/inc/unbound.inc
parenta569071dc2c92d30a2f90fd0cbc51f35fc20ca1c (diff)
downloadpfsense-ab8f10f26bd27160294c5dcb94f6a5b2e8b67535.zip
pfsense-ab8f10f26bd27160294c5dcb94f6a5b2e8b67535.tar.gz
unbound_statistics section should be written to unbound.conf
The stuff generated by unbound_statistics() goes into unbound.conf It had got separated out and was going nowhere. This puts the behavior back the way it was yesterday. Note: There is a separate issue about this because the UI has no place to actually select the statistics settings. There is some upgrade code that looks like it was converting statistics settings from the old Unbound package into custom commands in the integrated Unbound. So it looks like the unbound_statistics() function can/should be removed???
Diffstat (limited to 'src/etc/inc/unbound.inc')
-rw-r--r--src/etc/inc/unbound.inc6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/etc/inc/unbound.inc b/src/etc/inc/unbound.inc
index b4097ad..4b2a6d8 100644
--- a/src/etc/inc/unbound.inc
+++ b/src/etc/inc/unbound.inc
@@ -129,9 +129,6 @@ function unbound_generate_config() {
// Configure Domain Overrides
unbound_add_domain_overrides();
- // Configure Unbound statistics
- $statistics = unbound_statistics();
-
// Configure Unbound access-lists
unbound_acls_config();
@@ -231,6 +228,9 @@ EOF;
$reverse_zones .= unbound_add_domain_overrides("reverse");
}
+ // Configure Unbound statistics
+ $statistics = unbound_statistics();
+
// Add custom Unbound options
if ($unboundcfg['custom_options']) {
$custom_options_source = explode("\n", base64_decode($unboundcfg['custom_options']));
OpenPOWER on IntegriCloud