Skip to content

Commit 474022d

Browse files
committed
Fix v1.2.0 release
1 parent cec773f commit 474022d

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

pkg/unbound/conf.go

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -81,10 +81,11 @@ func generateUnboundConf(settings models.Settings,
8181
"harden-referral-path": "yes",
8282
"harden-algo-downgrade": "yes",
8383
// Network
84-
"do-ip4": ipv4,
85-
"do-ip6": ipv6,
86-
"interface": "0.0.0.0",
87-
"port": strconv.Itoa(int(settings.ListeningPort)),
84+
"do-ip4": ipv4,
85+
"do-ip6": ipv6,
86+
"interface": "0.0.0.0",
87+
"access-control": "0.0.0.0/0 allow",
88+
"port": strconv.Itoa(int(settings.ListeningPort)),
8889
// Other
8990
"username": `"` + username + `"`,
9091
"include": includeConfFilename,

pkg/unbound/conf_test.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ func Test_generateUnboundConf(t *testing.T) {
4242
)
4343
expected := `
4444
server:
45+
access-control: 0.0.0.0/0 allow
4546
cache-max-ttl: 9000
4647
cache-min-ttl: 3600
4748
do-ip4: yes

0 commit comments

Comments
 (0)