Skip to content

Commit 29fbb7a

Browse files
committed
Create include.conf in etc directory
1 parent 6668d4f commit 29fbb7a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

pkg/unbound/conf.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ func generateUnboundConf(settings models.Settings,
8888
"port": strconv.Itoa(int(settings.ListeningPort)),
8989
// Other
9090
"username": `"` + username + `"`,
91-
"include": includeConfFilename,
91+
"include": `"` + filepath.Join(unboundDir, includeConfFilename) + `"`,
9292
}
9393

9494
for _, provider := range settings.Providers {

pkg/unbound/conf_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ server:
5252
harden-referral-path: yes
5353
hide-identity: yes
5454
hide-version: yes
55-
include: include.conf
55+
include: "/unbound/include.conf"
5656
interface: 0.0.0.0
5757
key-cache-size: 32m
5858
key-cache-slabs: 4

0 commit comments

Comments
 (0)