Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
O
OpnSense
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kulya
OpnSense
Commits
acbd63db
Commit
acbd63db
authored
Jun 07, 2016
by
Franco Fichtner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dns: fix unbound custom options
PR:
https://forum.opnsense.org/index.php?topic=3137.0
parent
9f801be9
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
13 deletions
+10
-13
unbound.inc
src/etc/inc/unbound.inc
+3
-7
services_unbound.php
src/www/services_unbound.php
+7
-6
No files found.
src/etc/inc/unbound.inc
View file @
acbd63db
...
...
@@ -209,13 +209,9 @@ EOF;
unbound_acls_config
();
// Add custom Unbound options
if
(
$config
[
'unbound'
][
'custom_options'
])
{
$custom_options
=
"# Unbound custom option
\n
"
;
foreach
(
preg_split
(
'/\s+/'
,
$config
[
'unbound'
][
'custom_options'
])
as
$ent
)
{
$custom_options
.=
$ent
.
"
\n
"
;
}
}
else
{
$custom_options
=
""
;
$custom_options
=
''
;
if
(
!
empty
(
$config
[
'unbound'
][
'custom_options'
]))
{
$custom_options
=
"# Unbound custom options
\n
{
$config
[
'unbound'
][
'custom_options'
]
}
\n
"
;
}
// Server configuration variables
...
...
src/www/services_unbound.php
View file @
acbd63db
...
...
@@ -242,12 +242,13 @@ include_once("head.inc");
</td>
</tr>
<tr
class=
"showadv"
style=
"display:none"
>
<td><i
class=
"fa fa-info-circle text-muted"
></i>
<?=
gettext
(
"Advanced"
);
?>
</td>
<td>
<strong>
<?=
gettext
(
"Advanced"
);
?>
<br
/></strong>
<textarea
rows=
"6"
cols=
"78"
name=
"custom_options"
id=
"custom_options"
>
<?=
$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
/>
</td>
<td><a
id=
"help_for_custom_options"
href=
"#"
class=
"showhelp"
><i
class=
"fa fa-info-circle"
></i></a>
<?=
gettext
(
'Custom options'
)
?>
</td>
<td>
<textarea
rows=
"6"
cols=
"78"
name=
"custom_options"
id=
"custom_options"
>
<?=
$pconfig
[
'custom_options'
];
?>
</textarea>
<div
class=
"hidden"
for=
"help_for_custom_options"
>
<?=
gettext
(
"Enter any additional options you would like to add to the DNS Resolver configuration here."
);
?>
</div>
</td>
</tr>
<tr
class=
"showadv"
style=
"display:none"
>
<td><a
id=
"help_for_outgoing_interface"
href=
"#"
class=
"showhelp"
><i
class=
"fa fa-info-circle"
></i></a>
<?=
gettext
(
"Outgoing Network Interfaces"
);
?>
</td>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment