1
0
mirror of https://github.com/moparisthebest/curl synced 2024-12-21 15:48:49 -05:00

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

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