}
static void
-http_client_host_shared_lookup(struct http_client_host_shared *hshared)
+http_client_host_shared_lookup(struct http_client_host *host)
{
+ struct http_client_host_shared *hshared = host->shared;
struct http_client_context *cctx = hshared->cctx;
struct dns_client_settings dns_set;
}
static int
-http_client_host_shared_refresh(struct http_client_host_shared *hshared)
+http_client_host_shared_refresh(struct http_client_host *host)
{
+ struct http_client_host_shared *hshared = host->shared;
if (hshared->unix_local)
return 0;
if (hshared->explicit_ip)
"need to refresh DNS lookup");
}
- http_client_host_shared_lookup(hshared);
+ http_client_host_shared_lookup(host);
if (hshared->dns_lookup != NULL)
return -1;
return (hshared->ips_count > 0 ? 1 : -1);
int http_client_host_refresh(struct http_client_host *host)
{
- return http_client_host_shared_refresh(host->shared);
+ return http_client_host_shared_refresh(host);
}
bool http_client_host_get_ip_idx(struct http_client_host *host,