proxy_gethostbyname_old(): likewise.

pull/356/head
rofl0r 2020-10-28 11:05:52 +00:00
parent 59e8d1710a
commit 82c766461c
1 changed files with 5 additions and 0 deletions

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;