mirror of
https://github.com/curl/curl.git
synced 2026-04-16 04:01:41 +03:00
IPv6-addresses can have dots too!
This commit is contained in:
parent
9518e06413
commit
9ce94207e2
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue