1
0
mirror of https://github.com/unrealircd/unrealircd.git synced 2026-07-08 20:03:14 +02:00

url_unreal: Fix build (#262)

Broken by 9a6a06b63f
This commit is contained in:
Val Lorentz
2023-10-12 07:12:56 +02:00
committed by GitHub
parent a04295c588
commit a906131689
2 changed files with 3 additions and 2 deletions
+2 -1
View File
@@ -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);
+1 -1
View File
@@ -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?
}
}