From 51d04447ea39abee441ad9481e6511dbbfea5309 Mon Sep 17 00:00:00 2001 From: John Dickinson Date: Sun, 10 Aug 2014 14:59:03 +0000 Subject: [PATCH] Fix for issue 54: set_ub_dns_transport() not working --- src/context.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/context.c b/src/context.c index 9c01e269..0781daeb 100644 --- a/src/context.c +++ b/src/context.c @@ -725,16 +725,16 @@ set_ub_dns_transport(struct getdns_context* context, getdns_transport_t value) { switch (value) { case GETDNS_TRANSPORT_UDP_FIRST_AND_FALL_BACK_TO_TCP: - set_ub_string_opt(context, "do-udp", "yes"); - set_ub_string_opt(context, "do-tcp", "yes"); + set_ub_string_opt(context, "do-udp:", "yes"); + set_ub_string_opt(context, "do-tcp:", "yes"); break; case GETDNS_TRANSPORT_UDP_ONLY: - set_ub_string_opt(context, "do-udp", "yes"); - set_ub_string_opt(context, "do-tcp", "no"); + set_ub_string_opt(context, "do-udp:", "yes"); + set_ub_string_opt(context, "do-tcp:", "no"); break; case GETDNS_TRANSPORT_TCP_ONLY: - set_ub_string_opt(context, "do-udp", "no"); - set_ub_string_opt(context, "do-tcp", "yes"); + set_ub_string_opt(context, "do-udp:", "no"); + set_ub_string_opt(context, "do-tcp:", "yes"); break; default: /* TODO GETDNS_CONTEXT_TCP_ONLY_KEEP_CONNECTIONS_OPEN */