Skip to content

Commit 4084964

Browse files
committed
unbond.conf: prefer trust_anchor_file to auto_trust_anchor_file
The config only supports having trust_anchor_file or auto_trust_anchor_file. this updates the code to use trust_anchor_file if it is set (its undef by default) otherwise use auto_trust_anchor_file which has a default value. fixes #316
1 parent 3b80c81 commit 4084964

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

templates/unbound.conf.erb

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -175,8 +175,11 @@ server:
175175
<%- unless @module_config.empty? %>
176176
module-config: "<%= @module_config.join(' ') %>"
177177
<%- end -%>
178+
<%- if @trust_anchor_file -%>
178179
<%= print_config('trust-anchor-file', @trust_anchor_file) -%>
180+
<%- else -%>
179181
<%= print_config('auto-trust-anchor-file', @auto_trust_anchor_file) -%>
182+
<%- end -%>
180183
<%= print_config('trust-anchor', @trust_anchor) -%>
181184
<%= print_config('trusted-keys-file', @trusted_keys_file) -%>
182185
<%= print_config('trust-anchor-signaling', @trust_anchor_signaling) -%>

0 commit comments

Comments
 (0)