mirror of
https://github.com/curl/curl.git
synced 2026-05-30 05:57:29 +03:00
parent
5637ca1aab
commit
c2e427cc93
1 changed files with 2 additions and 2 deletions
|
|
@ -536,8 +536,8 @@ static struct Curl_addrinfo *get_localhost6(int port, const char *name)
|
|||
sa6.sin6_port = htons(port16);
|
||||
sa6.sin6_flowinfo = 0;
|
||||
sa6.sin6_scope_id = 0;
|
||||
if(Curl_inet_pton(AF_INET6, "::1", ipv6) < 1)
|
||||
return NULL;
|
||||
|
||||
(void)Curl_inet_pton(AF_INET6, "::1", ipv6);
|
||||
memcpy(&sa6.sin6_addr, ipv6, sizeof(ipv6));
|
||||
|
||||
ca->ai_flags = 0;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue