Lukasz Czekierda correctly pointed out that curl used a bad Host: header

when talking to a IPv6-server using IPv6 IP address only.
This commit is contained in:
Daniel Stenberg
2002-09-11 10:32:37 +00:00
parent 3b825bcbfb
commit cac5251a98
4 changed files with 20 additions and 4 deletions

View File

@@ -463,7 +463,11 @@ CURLcode Curl_connecthost(struct connectdata *conn, /* context */
}
hostname = data->change.proxy?conn->proxyhost:conn->hostname;
infof(data, "About to connect() to %s:%d\n", hostname, port);
infof(data, "About to connect() to %s%s%s:%d\n",
conn->bits.ipv6_ip?"[":"",
hostname,
conn->bits.ipv6_ip?"]":"",
port);
#ifdef ENABLE_IPV6
/*