diff options
author | Warren Baker <warren@decoy.co.za> | 2011-10-01 21:34:13 +0200 |
---|---|---|
committer | Warren Baker <warren@decoy.co.za> | 2011-10-01 21:34:13 +0200 |
commit | 0a64e62637406c6319c7493786f71d6845e0e750 (patch) | |
tree | 3c0cac0d0fd1b2cbf3b80debc34e4e91457c77d0 /etc/inc/unbound.inc | |
parent | 69508c4706b40f5d7d8ac68e0d71628dd7e3f00b (diff) | |
download | pfsense-0a64e62637406c6319c7493786f71d6845e0e750.zip pfsense-0a64e62637406c6319c7493786f71d6845e0e750.tar.gz |
Make space for Unbound custom options
Diffstat (limited to 'etc/inc/unbound.inc')
-rw-r--r-- | etc/inc/unbound.inc | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/etc/inc/unbound.inc b/etc/inc/unbound.inc index 507ef12..a142a91 100644 --- a/etc/inc/unbound.inc +++ b/etc/inc/unbound.inc @@ -242,10 +242,11 @@ EOF; $statistics = unbound_statistics(); /* Add custom Unbound options */ - //if ($config['unbound']['custom_options']) { - // foreach (preg_split('/\s+/', $config['unbound']['custom_options']) as $c) - // - //} + if ($config['dns']['custom_options']) { + $custom_option = "# Unbound custom option" + foreach (preg_split('/\s+/', $config['dns']['custom_options']) as $ent) + $custom_option .= $ent."\n"; + } $unboundconf = <<<EOD ########################## @@ -311,6 +312,8 @@ include: {$g['unbound_chroot_path']}/etc/host_entries.conf # Domain overrides include: {$g['unbound_chroot_path']}/etc/domainoverrides.conf +{$custom_options} + ### # Remote Control Config ### |