mirror of
https://github.com/rofl0r/proxychains-ng.git
synced 2024-12-22 04:08:47 +00:00
proxy_gethostbyname_old(): fix returned address type
This commit is contained in:
parent
82c766461c
commit
55dce2c040
@ -828,6 +828,7 @@ got_buff:
|
|||||||
&addr ,sizeof(struct in_addr));
|
&addr ,sizeof(struct in_addr));
|
||||||
hostent_space.h_name = addr_name;
|
hostent_space.h_name = addr_name;
|
||||||
hostent_space.h_length = sizeof (in_addr_t);
|
hostent_space.h_length = sizeof (in_addr_t);
|
||||||
|
hostent_space.h_addrtype = AF_INET;
|
||||||
}
|
}
|
||||||
proxychains_write_log("|DNS-response| %s is %s\n",
|
proxychains_write_log("|DNS-response| %s is %s\n",
|
||||||
name, inet_ntoa(*(struct in_addr*)&addr));
|
name, inet_ntoa(*(struct in_addr*)&addr));
|
||||||
|
Loading…
Reference in New Issue
Block a user