Skip to content

Commit

Permalink
Create include.conf in etc directory
Browse files Browse the repository at this point in the history
  • Loading branch information
qdm12 committed Jan 2, 2021
1 parent 6668d4f commit 29fbb7a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pkg/unbound/conf.go
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ func generateUnboundConf(settings models.Settings,
"port": strconv.Itoa(int(settings.ListeningPort)),
// Other
"username": `"` + username + `"`,
"include": includeConfFilename,
"include": `"` + filepath.Join(unboundDir, includeConfFilename) + `"`,
}

for _, provider := range settings.Providers {
Expand Down
2 changes: 1 addition & 1 deletion pkg/unbound/conf_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ server:
harden-referral-path: yes
hide-identity: yes
hide-version: yes
include: include.conf
include: "/unbound/include.conf"
interface: 0.0.0.0
key-cache-size: 32m
key-cache-slabs: 4
Expand Down

0 comments on commit 29fbb7a

Please sign in to comment.