diff --git a/include/dns.h b/include/dns.h index dc0b2cf52..dfc743c8e 100644 --- a/include/dns.h +++ b/include/dns.h @@ -64,7 +64,8 @@ struct DNSStats { */ #define DNS_MAX_ENTRIES DNS_HASH_SIZE -extern ares_channel resolver_channel; +extern ares_channel resolver_channel_client; +extern ares_channel resolver_channel_dnsbl; extern void init_resolver(int); diff --git a/src/url_unreal.c b/src/url_unreal.c index e2a0b9bb9..3d8333c92 100644 --- a/src/url_unreal.c +++ b/src/url_unreal.c @@ -235,7 +235,7 @@ void url_start_async(const char *url, HttpMethod http_method, const char *body, } else { /* Hostname, so start resolving... */ handle->dns_refcnt++; - ares_gethostbyname(resolver_channel, handle->hostname, AF_INET, url_resolve_cb, handle); + ares_gethostbyname(resolver_channel_client, handle->hostname, AF_INET, url_resolve_cb, handle); // TODO: check return value? } }