mirror of
https://github.com/monero-project/monero.git
synced 2026-01-10 04:05:24 -08:00
i2p: initial support
This commit is contained in:
@@ -40,6 +40,7 @@
|
||||
|
||||
#include "net/net_utils_base.h"
|
||||
#include "net/tor_address.h"
|
||||
#include "net/i2p_address.h"
|
||||
|
||||
namespace net
|
||||
{
|
||||
@@ -273,6 +274,13 @@ namespace socks
|
||||
return false;
|
||||
}
|
||||
|
||||
bool client::set_connect_command(const net::i2p_address& address)
|
||||
{
|
||||
if (!address.is_unknown())
|
||||
return set_connect_command(address.host_str(), address.port());
|
||||
return false;
|
||||
}
|
||||
|
||||
bool client::set_resolve_command(boost::string_ref domain)
|
||||
{
|
||||
if (socks_version() != version::v4a_tor)
|
||||
|
||||
Reference in New Issue
Block a user