From ce5437f0677966c15d2946bc7c068975aa6bfd83 Mon Sep 17 00:00:00 2001 From: Lee *!* Clagett Date: Sat, 17 Aug 2024 18:37:10 -0400 Subject: Add Socks v5 support to daemon and wallet (cherry picked from commit 23e29a5074f01cbb781f7e76b0c17ad2b6797af0) --- src/p2p/net_node.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/p2p/net_node.h') diff --git a/src/p2p/net_node.h b/src/p2p/net_node.h index 423e2607e..edd3e31fa 100644 --- a/src/p2p/net_node.h +++ b/src/p2p/net_node.h @@ -56,7 +56,7 @@ #include "math_helper.h" #include "net_node_common.h" #include "net/enums.h" -#include "net/fwd.h" +#include "net/parse.h" #include "common/command_line.h" PUSH_WARNINGS @@ -74,7 +74,7 @@ namespace nodetool {} std::int64_t max_connections; - boost::asio::ip::tcp::endpoint address; + net::socks::endpoint address; epee::net_utils::zone zone; bool noise; }; @@ -104,7 +104,7 @@ namespace nodetool // hides boost::future and chrono stuff from mondo template file boost::optional - socks_connect_internal(const std::atomic& stop_signal, boost::asio::io_context& service, const boost::asio::ip::tcp::endpoint& proxy, const epee::net_utils::network_address& remote); + socks_connect_internal(const std::atomic& stop_signal, boost::asio::io_context& service, const net::socks::endpoint& proxy, const epee::net_utils::network_address& remote); template @@ -216,7 +216,7 @@ namespace nodetool epee::net_utils::network_address m_our_address; // in anonymity networks peerlist_manager m_peerlist; config m_config; - boost::asio::ip::tcp::endpoint m_proxy_address; + net::socks::endpoint m_proxy_address; std::atomic m_current_number_of_out_peers; std::atomic m_current_number_of_in_peers; boost::shared_mutex m_seed_nodes_lock; -- cgit v1.2.3