From dfe08c1ec9fb84b34c7f778bb9ac6003d90e2784 Mon Sep 17 00:00:00 2001 From: Jeff Becker Date: Sun, 26 Aug 2018 09:24:11 -0400 Subject: [PATCH] enable outproxy on socks --- libi2pd_client/ClientContext.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libi2pd_client/ClientContext.cpp b/libi2pd_client/ClientContext.cpp index b40c2832..b58677c8 100644 --- a/libi2pd_client/ClientContext.cpp +++ b/libi2pd_client/ClientContext.cpp @@ -500,7 +500,8 @@ namespace client if (type == I2P_TUNNELS_SECTION_TYPE_SOCKS) { // socks proxy - auto tun = std::make_shared(name, address, port, false, "", destinationPort, localDestination); + std::string outproxy = section.second.get("outproxy", ""); + auto tun = std::make_shared(name, address, port, !outproxy.empty(), outproxy, destinationPort, localDestination); clientTunnel = tun; clientEndpoint = tun->GetLocalEndpoint (); }