diff options
author | Daniel Stenberg <daniel@haxx.se> | 2010-11-11 14:51:39 +0100 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2010-11-11 15:16:21 +0100 |
commit | a1f32ffee540bcef046dc499938585c5da9d0aa8 (patch) | |
tree | b4eab16b09769defe5ebc40805d330ff36d9e120 /lib/hostares.c | |
parent | fec5f03e22c815c485d6381b2d5a83579a72996c (diff) |
ip_version: moved to connection struct
The IP version choice was previously only in the UserDefined struct
within the SessionHandle, but since we sometimes alter that option
during a request we need to have it on a per-connection basis.
I also moved more "init conn" code into the allocate_conn() function
which is designed for that purpose more or less.
Diffstat (limited to 'lib/hostares.c')
-rw-r--r-- | lib/hostares.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/hostares.c b/lib/hostares.c index 5d54ac1b4..e31a677da 100644 --- a/lib/hostares.c +++ b/lib/hostares.c @@ -378,7 +378,7 @@ Curl_addrinfo *Curl_getaddrinfo(struct connectdata *conn, return Curl_ip2addr(AF_INET6, &in6, hostname, port); } - switch(data->set.ip_version) { + switch(conn->ip_version) { default: #if ARES_VERSION >= 0x010601 family = PF_UNSPEC; /* supported by c-ares since 1.6.1, so for older |