aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/connect.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/connect.c b/lib/connect.c
index 07d5f3887..3d3479218 100644
--- a/lib/connect.c
+++ b/lib/connect.c
@@ -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)