aboutsummaryrefslogtreecommitdiff
path: root/src/net/socks.cpp
diff options
context:
space:
mode:
authorRiccardo Spagni <ric@spagni.net>2019-03-04 21:20:33 +0200
committerRiccardo Spagni <ric@spagni.net>2019-03-04 21:20:34 +0200
commit4466f4504e8bc41d353a6becce0526df8272bc1d (patch)
treef22a1a5bf61c24b596f8f070017403dc639c34a6 /src/net/socks.cpp
parentMerge pull request #5084 (diff)
parenti2p: initial support (diff)
downloadmonero-4466f4504e8bc41d353a6becce0526df8272bc1d.tar.xz
Merge pull request #5091
123fc2a2 i2p: initial support (Jethro Grassie)
Diffstat (limited to 'src/net/socks.cpp')
-rw-r--r--src/net/socks.cpp8
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)