mirror of
https://github.com/rofl0r/proxychains-ng
synced 2025-01-04 19:22:52 +08:00
Compare commits
3 Commits
d859079743
...
b670251773
Author | SHA1 | Date | |
---|---|---|---|
|
b670251773 | ||
|
1760c93474 | ||
|
77bbeef280 |
@ -999,7 +999,7 @@ err_nn:
|
|||||||
} else if(!node && !(hints->ai_flags & AI_PASSIVE)) {
|
} else if(!node && !(hints->ai_flags & AI_PASSIVE)) {
|
||||||
af = ((struct sockaddr_in *) &space->sockaddr_space)->sin_family = AF_INET;
|
af = ((struct sockaddr_in *) &space->sockaddr_space)->sin_family = AF_INET;
|
||||||
memcpy(&((struct sockaddr_in *) &space->sockaddr_space)->sin_addr,
|
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);
|
if(service) mygetservbyname_r(service, NULL, &se_buf, buf, sizeof(buf), &se);
|
||||||
|
|
||||||
|
@ -79,12 +79,12 @@ proxy_dns
|
|||||||
# we use the reserved 224.x.x.x range by default,
|
# we use the reserved 224.x.x.x range by default,
|
||||||
# if the proxified app does a DNS request, we will return an IP from that range.
|
# if the proxified app does a DNS request, we will return an IP from that range.
|
||||||
# on further accesses to this ip we will send the saved DNS name to the proxy.
|
# on further accesses to this ip we will send the saved DNS name to the proxy.
|
||||||
# in case some control-freak app checks the returned ip, and denies to
|
# in case some control-freak app checks the returned ip, and denies to
|
||||||
# connect, you can use another subnet, e.g. 10.x.x.x or 127.x.x.x.
|
# connect, you can use another subnet, e.g. 10.x.x.x or 127.x.x.x.
|
||||||
# of course you should make sure that the proxified app does not need
|
# of course you should make sure that the proxified app does not need
|
||||||
# *real* access to this subnet.
|
# *real* access to this subnet.
|
||||||
# i.e. dont use the same subnet then in the localnet section
|
# i.e. dont use the same subnet then in the localnet section
|
||||||
#remote_dns_subnet 127
|
#remote_dns_subnet 127
|
||||||
#remote_dns_subnet 10
|
#remote_dns_subnet 10
|
||||||
remote_dns_subnet 224
|
remote_dns_subnet 224
|
||||||
|
|
||||||
@ -109,7 +109,7 @@ tcp_connect_time_out 8000
|
|||||||
|
|
||||||
## RFC6890 Loopback address range
|
## RFC6890 Loopback address range
|
||||||
## if you enable this, you have to make sure remote_dns_subnet is not 127
|
## if you enable this, you have to make sure remote_dns_subnet is not 127
|
||||||
## you'll need to enable it if you want to use an application that
|
## you'll need to enable it if you want to use an application that
|
||||||
## connects to localhost.
|
## connects to localhost.
|
||||||
# localnet 127.0.0.0/255.0.0.0
|
# localnet 127.0.0.0/255.0.0.0
|
||||||
# localnet ::1/128
|
# localnet ::1/128
|
||||||
@ -147,8 +147,8 @@ tcp_connect_time_out 8000
|
|||||||
# socks5 192.168.67.78 1080 lamer secret
|
# socks5 192.168.67.78 1080 lamer secret
|
||||||
# http 192.168.89.3 8080 justu hidden
|
# http 192.168.89.3 8080 justu hidden
|
||||||
# socks4 192.168.1.49 1080
|
# socks4 192.168.1.49 1080
|
||||||
# http 192.168.39.93 8080
|
# http 192.168.39.93 8080
|
||||||
#
|
#
|
||||||
#
|
#
|
||||||
# proxy types: http, socks4, socks5, raw
|
# proxy types: http, socks4, socks5, raw
|
||||||
# * raw: The traffic is simply forwarded to the proxy without modification.
|
# * raw: The traffic is simply forwarded to the proxy without modification.
|
||||||
@ -159,4 +159,3 @@ tcp_connect_time_out 8000
|
|||||||
# meanwile
|
# meanwile
|
||||||
# defaults set to "tor"
|
# defaults set to "tor"
|
||||||
socks4 127.0.0.1 9050
|
socks4 127.0.0.1 9050
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user