Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/rofl0r/proxychains-ng.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/core.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/core.c b/src/core.c
index 59d07de..c4cdbb4 100644
--- a/src/core.c
+++ b/src/core.c
@@ -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;