Revision 0a64e626
Added by Warren Baker almost 14 years ago
etc/inc/unbound.inc | ||
---|---|---|
242 | 242 |
$statistics = unbound_statistics(); |
243 | 243 |
|
244 | 244 |
/* Add custom Unbound options */ |
245 |
//if ($config['unbound']['custom_options']) { |
|
246 |
// foreach (preg_split('/\s+/', $config['unbound']['custom_options']) as $c) |
|
247 |
// |
|
248 |
//} |
|
245 |
if ($config['dns']['custom_options']) { |
|
246 |
$custom_option = "# Unbound custom option" |
|
247 |
foreach (preg_split('/\s+/', $config['dns']['custom_options']) as $ent) |
|
248 |
$custom_option .= $ent."\n"; |
|
249 |
} |
|
249 | 250 |
|
250 | 251 |
$unboundconf = <<<EOD |
251 | 252 |
########################## |
... | ... | |
311 | 312 |
# Domain overrides |
312 | 313 |
include: {$g['unbound_chroot_path']}/etc/domainoverrides.conf |
313 | 314 |
|
315 |
{$custom_options} |
|
316 |
|
|
314 | 317 |
### |
315 | 318 |
# Remote Control Config |
316 | 319 |
### |
Also available in: Unified diff
Make space for Unbound custom options