Browse Source

Merge pull request #1231 from majestrate/fix-socks-outproxy

enable outproxy on socks
pull/1234/head
orignal 6 years ago committed by GitHub
parent
commit
ff8fb8000d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 3
      libi2pd_client/ClientContext.cpp

3
libi2pd_client/ClientContext.cpp

@ -500,7 +500,8 @@ namespace client
if (type == I2P_TUNNELS_SECTION_TYPE_SOCKS) if (type == I2P_TUNNELS_SECTION_TYPE_SOCKS)
{ {
// socks proxy // 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; clientTunnel = tun;
clientEndpoint = tun->GetLocalEndpoint (); clientEndpoint = tun->GetLocalEndpoint ();
} }

Loading…
Cancel
Save