mirror of
https://github.com/NLnetLabs/unbound.git
synced 2025-12-20 23:00:56 -05:00
- Fix that unbound-checkconf -f flag works with auto-trust-anchor-file
for startup scripts to get the full pathname(s) of anchor file(s). git-svn-id: file:///svn/unbound/trunk@4447 be551aaa-1e26-0410-a405-d3ace91eadb9
This commit is contained in:
parent
859ca7db68
commit
c54dfcade9
2 changed files with 14 additions and 0 deletions
|
|
@ -1,3 +1,7 @@
|
|||
23 January 2018: Wouter
|
||||
- Fix that unbound-checkconf -f flag works with auto-trust-anchor-file
|
||||
for startup scripts to get the full pathname(s) of anchor file(s).
|
||||
|
||||
22 January 2018: Wouter
|
||||
- Accept tls-upstream in unbound.conf, the ssl-upstream keyword is
|
||||
also recognized and means the same. Also for tls-port,
|
||||
|
|
|
|||
|
|
@ -109,6 +109,16 @@ print_option(struct config_file* cfg, const char* opt, int final)
|
|||
free(p);
|
||||
return;
|
||||
}
|
||||
if(strcmp(opt, "auto-trust-anchor-file") == 0 && final) {
|
||||
struct config_strlist* s = cfg->auto_trust_anchor_file_list;
|
||||
for(; s; s=s->next) {
|
||||
char *p = fname_after_chroot(s->str, cfg, 1);
|
||||
if(!p) fatal_exit("out of memory");
|
||||
printf("%s\n", p);
|
||||
free(p);
|
||||
}
|
||||
return;
|
||||
}
|
||||
if(!config_get_option(cfg, opt, config_print_func, stdout))
|
||||
fatal_exit("cannot print option '%s'", opt);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue