target-fetch-policy only with unbound-event-api

This commit is contained in:
Willem Toorop 2016-03-31 07:49:40 -03:00
parent cab13ce32a
commit c53b15bd9a
1 changed files with 3 additions and 1 deletions

View File

@ -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,