diff --git a/RouterContext.h b/RouterContext.h index aef7d6ac..80928901 100644 --- a/RouterContext.h +++ b/RouterContext.h @@ -3,6 +3,7 @@ #include #include +#include #include #include #include @@ -24,6 +25,11 @@ namespace i2p void Init (); i2p::data::RouterInfo& GetRouterInfo () { return m_RouterInfo; }; + std::shared_ptr GetSharedRouterInfo () const + { + return std::shared_ptr (&m_RouterInfo, + [](const i2p::data::RouterInfo *) {}); + } CryptoPP::RandomNumberGenerator& GetRandomNumberGenerator () { return m_Rnd; }; void UpdatePort (int port); // called from Daemon