Skip to content

Commit

Permalink
target-fetch-policy only with unbound-event-api
Browse files Browse the repository at this point in the history
  • Loading branch information
wtoorop committed Mar 31, 2016
1 parent cab13ce commit c53b15b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/context.c
Original file line number Diff line number Diff line change
Expand Up @@ -1562,8 +1562,10 @@ rebuild_ub_ctx(struct getdns_context* context) {
if (!context->unbound_ctx)
return GETDNS_RETURN_MEMORY_ERROR;

#ifdef HAVE_UNBOUND_EVENT_API
ub_ctx_set_option(context->unbound_ctx,
"target-fetch-policy:", "1 1 1 0 0");
"target-fetch-policy:", "0 0 0 0 0");
#endif
set_ub_dnssec_allowed_skew(context,
context->dnssec_allowed_skew);
set_ub_edns_maximum_udp_payload_size(context,
Expand Down

0 comments on commit c53b15b

Please sign in to comment.