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
c063be38
Commit
c063be38
authored
Feb 25, 2016
by
Ad Schellevis
Committed by
Franco Fichtner
Mar 04, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
unbound, change order of things
(cherry picked from commit
c86e7e06
)
parent
8d040797
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
5 deletions
+11
-5
unbound.inc
src/etc/inc/unbound.inc
+11
-5
No files found.
src/etc/inc/unbound.inc
View file @
c063be38
...
...
@@ -242,6 +242,14 @@ EOF;
$unwanted_reply_threshold
=
(
!
empty
(
$config
[
'unbound'
][
'unwanted_reply_threshold'
]))
?
$config
[
'unbound'
][
'unwanted_reply_threshold'
]
:
"0"
;
$verbosity
=
isset
(
$config
[
'unbound'
][
'log_verbosity'
])
?
$config
[
'unbound'
][
'log_verbosity'
]
:
1
;
if
(
isset
(
$config
[
'unbound'
][
'regdhcp'
]))
{
// include dynamic leases
@
touch
(
"
{
$g
[
'unbound_chroot_path'
]
}
/dhcpleases.conf"
);
$include_dhcpleases
=
"include:
{
$g
[
'unbound_chroot_path'
]
}
/dhcpleases.conf"
;
}
else
{
$include_dhcpleases
=
""
;
}
// Set up forwarding if it configured
if
(
isset
(
$config
[
'unbound'
][
'forwarding'
]))
{
$dnsservers
=
array
();
...
...
@@ -339,6 +347,9 @@ include: {$g['unbound_chroot_path']}/access_lists.conf
# Static host entries
include: {$g['unbound_chroot_path']}/host_entries.conf
# DHCP leases (if configured)
{$include_dhcpleases}
# Domain overrides
include: {$g['unbound_chroot_path']}/domainoverrides.conf
...
...
@@ -353,11 +364,6 @@ include: {$g['unbound_chroot_path']}/remotecontrol.conf
EOD;
if
(
isset
(
$config
[
'unbound'
][
'regdhcp'
]))
{
// include dynamic leases
@
touch
(
"
{
$g
[
'unbound_chroot_path'
]
}
/dhcpleases.conf"
);
$unboundconf
.=
"
\n
include:
{
$g
[
'unbound_chroot_path'
]
}
/dhcpleases.conf
\n
"
;
}
file_put_contents
(
"
{
$g
[
'unbound_chroot_path'
]
}
/unbound.conf"
,
$unboundconf
);
return
0
;
...
...
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