IPv6-addresses can have dots too!

This commit is contained in:
Daniel Stenberg 2001-08-15 21:54:24 +00:00
parent 9518e06413
commit 9ce94207e2
1 changed files with 1 additions and 1 deletions

View File

@ -1989,7 +1989,7 @@ static CURLcode Connect(struct UrlData *data,
* IPv6-specified addresses in the [0::1] style.
*************************************************************/
if((1 == sscanf(conn->name, "[%*39[0-9a-fA-F:]%c", &endbracket)) &&
if((1 == sscanf(conn->name, "[%*39[0-9a-fA-F:.]%c", &endbracket)) &&
(']' == endbracket)) {
/* this is a IPv6-style specified IP-address */
#ifndef ENABLE_IPV6