mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
fix Unbound Advanced options
This commit is contained in:
parent
88a0937dc2
commit
b5acc797f8
@ -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";
|
||||
}
|
||||
|
||||
|
||||
@ -371,7 +371,7 @@ function show_advanced_dns() {
|
||||
<div id="showadv" <?php if (empty($pconfig['custom_options'])) echo "style='display:none'"; ?>>
|
||||
<strong><?=gettext("Advanced");?><br /></strong>
|
||||
<textarea rows="6" cols="78" name="custom_options" id="custom_options"><?=htmlspecialchars($pconfig['custom_options']);?></textarea><br />
|
||||
<?=gettext("Enter any additional options you would like to add to the DNS Resolver configuration here, separated by a space or newline"); ?><br />
|
||||
<?=gettext("Enter any additional configuration parameters to add to the DNS Resolver configuration here, separated by a newline"); ?><br />
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user