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:
parent
9518e06413
commit
9ce94207e2
@ -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…
Reference in New Issue
Block a user