diff --git a/libi2pd_client/ClientContext.cpp b/libi2pd_client/ClientContext.cpp index bd4c3fa6..514924f1 100644 --- a/libi2pd_client/ClientContext.cpp +++ b/libi2pd_client/ClientContext.cpp @@ -751,11 +751,11 @@ namespace client clientTunnel->SetConnectTimeout(timeout); LogPrint(eLogInfo, "Clients: I2P Client tunnel connect timeout set to ", timeout); } - uint64_t closeIdleTime = section.second.get(I2P_CLIENT_TUNNEL_CLOSE_IDLE_TIME, 0); + uint64_t closeIdleTime = section.second.get (boost::property_tree::ptree::path_type (I2P_CLIENT_TUNNEL_CLOSE_IDLE_TIME, '/'), 0); if (closeIdleTime) { clientTunnel->SetCloseIdleTime(closeIdleTime); - clientTunnel->SetNewDestOnResume(section.second.get(I2P_CLIENT_TUNNEL_NEW_DEST_ON_RESUME, false)); + clientTunnel->SetNewDestOnResume(section.second.get (boost::property_tree::ptree::path_type (I2P_CLIENT_TUNNEL_NEW_DEST_ON_RESUME, '/'), false)); } auto ins = m_ClientTunnels.insert (std::make_pair (clientEndpoint, clientTunnel));