diff options
author | Jethro Grassie <jtg@xtrabass.com> | 2019-01-21 11:50:03 -0500 |
---|---|---|
committer | Jethro Grassie <jtg@xtrabass.com> | 2019-01-30 13:37:45 -0500 |
commit | 123fc2a25afaebe89b94c9806eb05033e021d807 (patch) | |
tree | 2151ced1046c2b1e40c8c123fa60d2d38ba0df7f /src/net/socks.cpp | |
parent | Merge pull request #4988 (diff) | |
download | monero-123fc2a25afaebe89b94c9806eb05033e021d807.tar.xz |
i2p: initial support
Diffstat (limited to 'src/net/socks.cpp')
-rw-r--r-- | src/net/socks.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/net/socks.cpp b/src/net/socks.cpp index f31efc8c1..53154369b 100644 --- a/src/net/socks.cpp +++ b/src/net/socks.cpp @@ -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) |