Support IPv6 for parent proxy

Parent proxy can be on IPv6 network (except SOCKS4).
This commit is contained in:
z3APA3A committed 2014-12-13 22:38:03 +03:00
1 parent d2437975b7
commit 8a6632f0d1
7 files changed
+58 -54

No files matched your search

+1 -1
View File
@@ -40,7 +40,7 @@ void * udppmchild(struct clientparam* param) {
if(!param->hostname)parsehostname((char *)param->srv->target, param, ntohs(param->srv->targetport));
if (!memcmp(SAADDR(&param->req), "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0", SAADDRLEN(&param->req))) {
if (SAISNULL(&param->req)) {
param->srv->fds.events = POLLIN;
RETURN (100);
}