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 voxpupuli#316
  • Loading branch information
b4ldr committed Oct 24, 2023
1 parent aad8393 commit cd91914
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 @@ -172,8 +172,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 cd91914

Please sign in to comment.