---
ii.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/ii.c b/ii.c
index 04ff9ec..b399a4a 100644
--- a/ii.c
+++ b/ii.c
_AT_@ -176,7 +176,8 @@ tcpopen(const char *host, unsigned short port) {
eprintf("ii: cannot retrieve host information:");
memset(&sin, 0, sizeof(struct sockaddr_in));
sin.sin_family = AF_INET;
- /* TODO: don't use h_addr or h_addr_list here, but getaddrinfo() */
+ /* TODO: don't use h_addr or h_addr_list here, but getaddrinfo(),
+ * also support IPV6. */
memcpy(&sin.sin_addr, hp->h_addr_list[0], hp->h_length);
sin.sin_port = htons(port);
if((fd = socket(AF_INET, SOCK_STREAM, 0)) < 0)
--
2.4.10
--Multipart=_Mon__9_May_2016_17_21_10_+0200_I.6cpFVydhq75aaE
Content-Type: text/x-diff;
name="0027-man-page-update-format.patch"
Content-Disposition: attachment;
filename="0027-man-page-update-format.patch"
Content-Transfer-Encoding: 7bit
Received on Mon Sep 17 2001 - 00:00:00 CEST
This archive was generated by hypermail 2.3.0 : Mon May 09 2016 - 17:24:22 CEST