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:
authorrofl0r <rofl0r@users.noreply.github.com>2020-10-28 14:05:52 +0300
committerrofl0r <rofl0r@users.noreply.github.com>2020-10-28 14:12:36 +0300
commit82c766461cbbca7e66b8508061e59bb3690a3130 (patch)
tree7149065a8e6f69c6c53dc358c8a1aad04a717500
parent59e8d1710a8f03a95513557b3feef20db2a2bd34 (diff)
proxy_gethostbyname_old(): likewise.
-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;