Browse Source

update i2pd.conf example, update socks proxy tunnel

pull/908/head
R4SAS 7 years ago
parent
commit
aa86ab97f0
  1. 2
      contrib/i2pd.conf
  2. 2
      libi2pd_client/ClientContext.cpp

2
contrib/i2pd.conf

@ -136,6 +136,8 @@ port = 4447 @@ -136,6 +136,8 @@ port = 4447
# keys = socks-proxy-keys.dat
## Socks outproxy. Example below is set to use Tor for all connections except i2p
## Uncomment and set to 'true' to enable using of SOCKS outproxy
# outproxy.enabled = false
## Address and port of outproxy
# outproxy = 127.0.0.1
# outproxyport = 9050

2
libi2pd_client/ClientContext.cpp

@ -517,7 +517,7 @@ namespace client @@ -517,7 +517,7 @@ namespace client
if (type == I2P_TUNNELS_SECTION_TYPE_SOCKS)
{
// socks proxy
clientTunnel = new i2p::proxy::SOCKSProxy(address, port, "", destinationPort, localDestination);
clientTunnel = new i2p::proxy::SOCKSProxy(address, port, false, "", destinationPort, localDestination);
clientEndpoint = ((i2p::proxy::SOCKSProxy*)clientTunnel)->GetAcceptor().local_endpoint();
}
else if (type == I2P_TUNNELS_SECTION_TYPE_HTTPPROXY)

Loading…
Cancel
Save