diff options
| author | Lee *!* Clagett <code@leeclagett.com> | 2024-08-17 18:37:10 -0400 |
|---|---|---|
| committer | lschomaker1 <lucas.schomaker12@gmail.com> | 2026-04-16 15:52:05 -0500 |
| commit | ce5437f0677966c15d2946bc7c068975aa6bfd83 (patch) | |
| tree | fe34f64934e00f27f4308f6747a0c32efd2edfcd /src/p2p/net_node.h | |
| parent | 54b803603cf0fb450a9b9436b9fe85452e75966f (diff) | |
| download | monzero-core-ce5437f0677966c15d2946bc7c068975aa6bfd83.tar.gz monzero-core-ce5437f0677966c15d2946bc7c068975aa6bfd83.tar.xz monzero-core-ce5437f0677966c15d2946bc7c068975aa6bfd83.zip | |
Add Socks v5 support to daemon and wallet
(cherry picked from commit 23e29a5074f01cbb781f7e76b0c17ad2b6797af0)
Diffstat (limited to 'src/p2p/net_node.h')
| -rw-r--r-- | src/p2p/net_node.h | 8 |
1 files changed, 4 insertions, 4 deletions
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<boost::asio::ip::tcp::socket> - socks_connect_internal(const std::atomic<bool>& 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<bool>& stop_signal, boost::asio::io_context& service, const net::socks::endpoint& proxy, const epee::net_utils::network_address& remote); template<class base_type> @@ -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<unsigned int> m_current_number_of_out_peers; std::atomic<unsigned int> m_current_number_of_in_peers; boost::shared_mutex m_seed_nodes_lock; |
