aboutsummaryrefslogtreecommitdiff
path: root/lib/url.c
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2002-09-11 10:32:37 +0000
committerDaniel Stenberg <daniel@haxx.se>2002-09-11 10:32:37 +0000
commitcac5251a98165bf5b6069f5276fd9d1d7331a11a (patch)
tree229a2a8beca08e2d5fffcff08f7a4a9d9827ccf6 /lib/url.c
parent3b825bcbfbd7553a58a506ecc3d08a941feb8081 (diff)
Lukasz Czekierda correctly pointed out that curl used a bad Host: header
when talking to a IPv6-server using IPv6 IP address only.
Diffstat (limited to 'lib/url.c')
-rw-r--r--lib/url.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/url.c b/lib/url.c
index ee4c7729d..394d3d0c9 100644
--- a/lib/url.c
+++ b/lib/url.c
@@ -2279,8 +2279,10 @@ static CURLcode CreateConnection(struct SessionHandle *data,
if((1 == sscanf(conn->name, "[%*39[0-9a-fA-F:.]%c", &endbracket)) &&
(']' == endbracket)) {
/* this is a RFC2732-style specified IP-address */
+ conn->bits.ipv6_ip = TRUE;
conn->name++; /* pass the starting bracket */
+ conn->hostname++;
tmp = strchr(conn->name, ']');
*tmp = 0; /* zero terminate */
tmp++; /* pass the ending bracket */