Skip to content

Commit

Permalink
enable socks outproxy
Browse files Browse the repository at this point in the history
  • Loading branch information
majestrate committed Aug 25, 2018
1 parent 2cb6283 commit 4c68703
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion libi2pd_client/ClientContext.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 4c68703

Please sign in to comment.