mirror of
https://github.com/rofl0r/proxychains-ng
synced 2025-01-08 22:22:52 +08:00
proxy_gethostbyname_old(): likewise.
This commit is contained in:
parent
59e8d1710a
commit
82c766461c
@ -764,6 +764,11 @@ struct hostent* proxy_gethostbyname_old(const char *name)
|
|||||||
*hostent_space.h_addr_list = (char*)&resolved_addr;
|
*hostent_space.h_addr_list = (char*)&resolved_addr;
|
||||||
resolved_addr = 0;
|
resolved_addr = 0;
|
||||||
|
|
||||||
|
if(pc_isnumericipv4(name)) {
|
||||||
|
strcpy(buff, name);
|
||||||
|
goto got_buff;
|
||||||
|
}
|
||||||
|
|
||||||
gethostname(buff,sizeof(buff));
|
gethostname(buff,sizeof(buff));
|
||||||
if(!strcmp(buff,name))
|
if(!strcmp(buff,name))
|
||||||
goto got_buff;
|
goto got_buff;
|
||||||
|
Loading…
Reference in New Issue
Block a user