1
0
mirror of https://github.com/rofl0r/proxychains-ng synced 2025-01-06 21:02:55 +08:00

proxy_gethostbyname_old(): likewise.

This commit is contained in:
rofl0r 2020-10-28 11:05:52 +00:00
parent 59e8d1710a
commit 82c766461c

View File

@ -764,6 +764,11 @@ struct hostent* proxy_gethostbyname_old(const char *name)
*hostent_space.h_addr_list = (char*)&resolved_addr;
resolved_addr = 0;
if(pc_isnumericipv4(name)) {
strcpy(buff, name);
goto got_buff;
}
gethostname(buff,sizeof(buff));
if(!strcmp(buff,name))
goto got_buff;