Browse Source

enable socks outproxy

pull/1272/head
Jeff Becker 6 years ago
parent
commit
4c687036c4
No known key found for this signature in database
GPG Key ID: F357B3B42F6F9B05
  1. 3
      libi2pd_client/ClientContext.cpp

3
libi2pd_client/ClientContext.cpp

@ -502,7 +502,8 @@ namespace client @@ -502,7 +502,8 @@ namespace client
if (type == I2P_TUNNELS_SECTION_TYPE_SOCKS)
{
// socks proxy
clientTunnel = new i2p::proxy::SOCKSProxy(name, address, port, false, "", destinationPort, localDestination);
std::string outproxy = section.second.get("outproxy", "");
clientTunnel = new i2p::proxy::SOCKSProxy(name, address, port, !outproxy.emtpy(), outproxy, destinationPort, localDestination);
clientEndpoint = ((i2p::proxy::SOCKSProxy*)clientTunnel)->GetLocalEndpoint ();
}
else if (type == I2P_TUNNELS_SECTION_TYPE_HTTPPROXY)

Loading…
Cancel
Save