Skip to content

Commit

Permalink
unbond.conf: prefer trust_anchor_file to auto_trust_anchor_file
Browse files Browse the repository at this point in the history
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
  • Loading branch information
b4ldr committed Aug 29, 2024
1 parent 3b80c81 commit 4084964
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions templates/unbound.conf.erb
Original file line number Diff line number Diff line change
Expand Up @@ -175,8 +175,11 @@ server:
<%- unless @module_config.empty? %>
module-config: "<%= @module_config.join(' ') %>"
<%- end -%>
<%- if @trust_anchor_file -%>
<%= print_config('trust-anchor-file', @trust_anchor_file) -%>
<%- else -%>
<%= print_config('auto-trust-anchor-file', @auto_trust_anchor_file) -%>
<%- end -%>
<%= print_config('trust-anchor', @trust_anchor) -%>
<%= print_config('trusted-keys-file', @trusted_keys_file) -%>
<%= print_config('trust-anchor-signaling', @trust_anchor_signaling) -%>
Expand Down

0 comments on commit 4084964

Please sign in to comment.