From 123fc2a25afaebe89b94c9806eb05033e021d807 Mon Sep 17 00:00:00 2001 From: Jethro Grassie Date: Mon, 21 Jan 2019 11:50:03 -0500 Subject: i2p: initial support --- contrib/epee/include/net/net_utils_base.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'contrib/epee') diff --git a/contrib/epee/include/net/net_utils_base.h b/contrib/epee/include/net/net_utils_base.h index 82f8a7fe8..ffd106e10 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 const Type &as() const { return as_mutable(); } 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 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(is_store_, stg, hparent_section); case address_type::tor: return this_ref.template serialize_addr(is_store_, stg, hparent_section); + case address_type::i2p: + return this_ref.template serialize_addr(is_store_, stg, hparent_section); case address_type::invalid: default: break; -- cgit v1.2.3