aboutsummaryrefslogtreecommitdiff
path: root/contrib
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 /contrib
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 'contrib')
-rw-r--r--contrib/epee/include/net/net_utils_base.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/contrib/epee/include/net/net_utils_base.h b/contrib/epee/include/net/net_utils_base.h
index 7ee0106b1..7b5b07ef2 100644
--- a/contrib/epee/include/net/net_utils_base.h
+++ b/contrib/epee/include/net/net_utils_base.h
@@ -47,6 +47,7 @@
namespace net
{
class tor_address;
+ class i2p_address;
}
namespace epee
@@ -196,7 +197,7 @@ namespace net_utils
template<typename Type> const Type &as() const { return as_mutable<const Type>(); }
BEGIN_KV_SERIALIZE_MAP()
- // need to `#include "net/tor_address.h"` when serializing `network_address`
+ // need to `#include "net/[i2p|tor]_address.h"` when serializing `network_address`
static constexpr std::integral_constant<bool, is_store> is_store_{};
std::uint8_t type = std::uint8_t(is_store ? this_ref.get_type_id() : address_type::invalid);
@@ -209,6 +210,8 @@ namespace net_utils
return this_ref.template serialize_addr<ipv4_network_address>(is_store_, stg, hparent_section);
case address_type::tor:
return this_ref.template serialize_addr<net::tor_address>(is_store_, stg, hparent_section);
+ case address_type::i2p:
+ return this_ref.template serialize_addr<net::i2p_address>(is_store_, stg, hparent_section);
case address_type::invalid:
default:
break;