summaryrefslogtreecommitdiffstats
path: root/etc/inc/unbound.inc
diff options
context:
space:
mode:
authorChris Buechler <cmb@pfsense.org>2014-11-15 18:40:50 -0600
committerChris Buechler <cmb@pfsense.org>2014-11-15 18:40:50 -0600
commitb5acc797f88ee37eb24b13736ec37a0ca19c8445 (patch)
treebbf1fea2e494eee999f3881175b6a8a84466cad4 /etc/inc/unbound.inc
parent88a0937dc206567b6aac2cb37de560cbb09c89c6 (diff)
downloadpfsense-b5acc797f88ee37eb24b13736ec37a0ca19c8445.zip
pfsense-b5acc797f88ee37eb24b13736ec37a0ca19c8445.tar.gz
fix Unbound Advanced options
Diffstat (limited to 'etc/inc/unbound.inc')
-rw-r--r--etc/inc/unbound.inc3
1 files changed, 2 insertions, 1 deletions
diff --git a/etc/inc/unbound.inc b/etc/inc/unbound.inc
index 9a92081..d4991fd 100644
--- a/etc/inc/unbound.inc
+++ b/etc/inc/unbound.inc
@@ -177,8 +177,9 @@ EOF;
// Add custom Unbound options
if ($config['unbound']['custom_options']) {
+ $custom_options_source = explode("\n", $config['unbound']['custom_options']);
$custom_options = "# Unbound custom options\n";
- foreach (preg_split('/\s+/', $config['unbound']['custom_options']) as $ent)
+ foreach ($custom_options_source as $ent)
$custom_options .= $ent."\n";
}
OpenPOWER on IntegriCloud