mirror of
https://github.com/curl/curl.git
synced 2026-07-28 06:23:06 +03:00
extract IPv6-style specified IP-addresses properly
This commit is contained in:
parent
aa21e42d5b
commit
9518e06413
1 changed files with 3 additions and 0 deletions
|
|
@ -1996,7 +1996,10 @@ static CURLcode Connect(struct UrlData *data,
|
|||
failf(data, "You haven't enabled IPv6 support");
|
||||
return CURLE_URL_MALFORMAT;
|
||||
#else
|
||||
conn->name++; /* pass the starting bracket */
|
||||
|
||||
tmp = strchr(conn->name, ']');
|
||||
*tmp = 0; /* zero terminate */
|
||||
|
||||
tmp++; /* pass the ending bracket */
|
||||
if(':' != *tmp)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue