Commit 9ce94207 authored by Daniel Stenberg's avatar Daniel Stenberg
Browse files

IPv6-addresses can have dots too!

parent 9518e064
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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