From 9ce94207e291b8a04290f4ece51cbae741e41ff2 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Wed, 15 Aug 2001 21:54:24 +0000 Subject: [PATCH] IPv6-addresses can have dots too! --- lib/url.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/url.c b/lib/url.c index afd66a4c7..76c2c732b 100644 --- a/lib/url.c +++ b/lib/url.c @@ -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