mirror of
https://github.com/rofl0r/proxychains-ng
synced 2025-01-02 01:12:52 +08:00
Compare commits
3 Commits
a9b631a05b
...
a79447dd42
Author | SHA1 | Date | |
---|---|---|---|
|
a79447dd42 | ||
|
1760c93474 | ||
|
3ab15aa05c |
@ -999,7 +999,7 @@ err_nn:
|
||||
} else if(!node && !(hints->ai_flags & AI_PASSIVE)) {
|
||||
af = ((struct sockaddr_in *) &space->sockaddr_space)->sin_family = AF_INET;
|
||||
memcpy(&((struct sockaddr_in *) &space->sockaddr_space)->sin_addr,
|
||||
(char[]){127,0,0,1}, 4);
|
||||
"\177\0\0\1", 4);
|
||||
}
|
||||
if(service) mygetservbyname_r(service, NULL, &se_buf, buf, sizeof(buf), &se);
|
||||
|
||||
|
@ -745,6 +745,10 @@ HOOKFUNC(int, connect, int sock, const struct sockaddr *addr, unsigned int len)
|
||||
if((p_addr_in->s_addr ^ localnet_addr[i].in_addr.s_addr) & localnet_addr[i].in_mask.s_addr)
|
||||
continue;
|
||||
}
|
||||
if (!v6 && dnat) {
|
||||
memcpy(&((struct sockaddr_in *) addr)->sin_addr, p_addr_in, sizeof(*p_addr_in));
|
||||
((struct sockaddr_in *) addr)->sin_port = htons(port);
|
||||
}
|
||||
PDEBUG("accessing localnet using true_connect\n");
|
||||
return true_connect(sock, addr, len);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user