From 55dce2c04094a42ae12ebdb8872a5bbb479b356e Mon Sep 17 00:00:00 2001 From: rofl0r Date: Wed, 28 Oct 2020 11:06:21 +0000 Subject: [PATCH] proxy_gethostbyname_old(): fix returned address type --- src/core.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/core.c b/src/core.c index c4cdbb4..811ccfd 100644 --- a/src/core.c +++ b/src/core.c @@ -828,6 +828,7 @@ got_buff: &addr ,sizeof(struct in_addr)); hostent_space.h_name = addr_name; hostent_space.h_length = sizeof (in_addr_t); + hostent_space.h_addrtype = AF_INET; } proxychains_write_log("|DNS-response| %s is %s\n", name, inet_ntoa(*(struct in_addr*)&addr));