mirror of
https://github.com/NLnetLabs/unbound.git
synced 2026-01-22 22:52:55 -05:00
unbound-host -d and -C fix
git-svn-id: file:///svn/unbound/trunk@1856 be551aaa-1e26-0410-a405-d3ace91eadb9
This commit is contained in:
parent
71959c05df
commit
35f077bc06
1 changed files with 2 additions and 1 deletions
|
|
@ -440,7 +440,6 @@ int main(int argc, char* argv[])
|
|||
debuglevel++;
|
||||
if(debuglevel < 2)
|
||||
debuglevel = 2; /* at least VERB_DETAIL */
|
||||
check_ub_res(ub_ctx_debuglevel(ctx, debuglevel));
|
||||
break;
|
||||
case 'r':
|
||||
check_ub_res(ub_ctx_resolvconf(ctx, "/etc/resolv.conf"));
|
||||
|
|
@ -466,6 +465,8 @@ int main(int argc, char* argv[])
|
|||
usage();
|
||||
}
|
||||
}
|
||||
if(debuglevel != 0) /* set after possible -C options */
|
||||
check_ub_res(ub_ctx_debuglevel(ctx, debuglevel));
|
||||
argc -= optind;
|
||||
argv += optind;
|
||||
if(argc != 1)
|
||||
|
|
|
|||
Loading…
Reference in a new issue