diff options
author | Chris Buechler <cmb@pfsense.org> | 2014-11-15 18:40:50 -0600 |
---|---|---|
committer | Chris Buechler <cmb@pfsense.org> | 2014-11-15 18:40:50 -0600 |
commit | b5acc797f88ee37eb24b13736ec37a0ca19c8445 (patch) | |
tree | bbf1fea2e494eee999f3881175b6a8a84466cad4 /etc/inc/unbound.inc | |
parent | 88a0937dc206567b6aac2cb37de560cbb09c89c6 (diff) | |
download | pfsense-b5acc797f88ee37eb24b13736ec37a0ca19c8445.zip pfsense-b5acc797f88ee37eb24b13736ec37a0ca19c8445.tar.gz |
fix Unbound Advanced options
Diffstat (limited to 'etc/inc/unbound.inc')
-rw-r--r-- | etc/inc/unbound.inc | 3 |
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"; } |