mirror of
https://github.com/curl/curl.git
synced 2026-05-10 16:16:25 +03:00
Allow compilation when no IPv6 stack is available.
This commit is contained in:
parent
885805b5df
commit
8cd76d3921
1 changed files with 2 additions and 0 deletions
|
|
@ -335,8 +335,10 @@ static CURLcode bindlocal(struct connectdata *conn,
|
|||
long ipver = data->set.ip_version;
|
||||
if (af == AF_INET)
|
||||
data->set.ip_version = CURL_IPRESOLVE_V4;
|
||||
#ifdef ENABLE_IPV6
|
||||
else if (af == AF_INET6)
|
||||
data->set.ip_version = CURL_IPRESOLVE_V6;
|
||||
#endif
|
||||
|
||||
rc = Curl_resolv(conn, dev, 0, &h);
|
||||
if(rc == CURLRESOLV_PENDING)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue