Skip to content

Commit

Permalink
enable outproxy on socks
Browse files Browse the repository at this point in the history
  • Loading branch information
majestrate committed Aug 26, 2018
1 parent 062d8d0 commit dfe08c1
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 @@ -500,7 +500,8 @@ namespace client
if (type == I2P_TUNNELS_SECTION_TYPE_SOCKS)
{
// socks proxy
auto tun = std::make_shared<i2p::proxy::SOCKSProxy>(name, address, port, false, "", destinationPort, localDestination);
std::string outproxy = section.second.get("outproxy", "");
auto tun = std::make_shared<i2p::proxy::SOCKSProxy>(name, address, port, !outproxy.empty(), outproxy, destinationPort, localDestination);
clientTunnel = tun;
clientEndpoint = tun->GetLocalEndpoint ();
}
Expand Down

0 comments on commit dfe08c1

Please sign in to comment.