blob: 7106dd897ba78e4fad1de43ad506c4a6ff88b83e (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
*** src/socket.d.orig Fri Jan 14 10:06:05 2000
--- src/socket.d Tue Aug 22 23:42:49 2000
***************
*** 299,312 ****
{
#ifdef HAVE_INET_PTON
#ifdef HAVE_IPV6
! { var struct sockaddr_in6 inaddr;
if (inet_pton(AF_INET6,host,&inaddr.sin6_addr) > 0)
{ inaddr.sin6_family = AF_INET6;
inaddr.sin6_port = htons(port);
return connector((struct sockaddr *) &inaddr, sizeof(struct sockaddr_in6));
} }
#endif
! { var struct sockaddr_in inaddr;
if (inet_pton(AF_INET,host,&inaddr.sin_addr) > 0)
{ inaddr.sin_family = AF_INET;
inaddr.sin_port = htons(port);
--- 299,312 ----
{
#ifdef HAVE_INET_PTON
#ifdef HAVE_IPV6
! { var struct sockaddr_in6 inaddr = {0};
if (inet_pton(AF_INET6,host,&inaddr.sin6_addr) > 0)
{ inaddr.sin6_family = AF_INET6;
inaddr.sin6_port = htons(port);
return connector((struct sockaddr *) &inaddr, sizeof(struct sockaddr_in6));
} }
#endif
! { var struct sockaddr_in inaddr = {0};
if (inet_pton(AF_INET,host,&inaddr.sin_addr) > 0)
{ inaddr.sin_family = AF_INET;
inaddr.sin_port = htons(port);
|