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/parse.cpp | |
| parent | 31bdf7bd113c2576fe579ef3a25a2d8fef419ffc (diff) | |
| download | monzero-core-123fc2a25afaebe89b94c9806eb05033e021d807.tar.gz monzero-core-123fc2a25afaebe89b94c9806eb05033e021d807.tar.xz monzero-core-123fc2a25afaebe89b94c9806eb05033e021d807.zip | |
i2p: initial support
Diffstat (limited to 'src/net/parse.cpp')
| -rw-r--r-- | src/net/parse.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/net/parse.cpp b/src/net/parse.cpp index ebf91eeff..eaaadb67e 100644 --- a/src/net/parse.cpp +++ b/src/net/parse.cpp @@ -29,6 +29,7 @@ #include "parse.h" #include "net/tor_address.h" +#include "net/i2p_address.h" #include "string_tools.h" namespace net @@ -43,7 +44,7 @@ namespace net if (host.ends_with(".onion")) return tor_address::make(address, default_port); if (host.ends_with(".i2p")) - return make_error_code(net::error::invalid_i2p_address); // not yet implemented (prevent public DNS lookup) + return i2p_address::make(address, default_port); std::uint16_t port = default_port; if (host.size() < address.size()) |
