|
|
@ -12,12 +12,6 @@ |
|
|
|
#include "Family.h" |
|
|
|
#include "Family.h" |
|
|
|
#include "RouterContext.h" |
|
|
|
#include "RouterContext.h" |
|
|
|
|
|
|
|
|
|
|
|
#ifdef ANDROID |
|
|
|
|
|
|
|
# include "to_string.h" |
|
|
|
|
|
|
|
#else |
|
|
|
|
|
|
|
# define to_string(x) std::to_string(x) |
|
|
|
|
|
|
|
#endif |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
namespace i2p |
|
|
|
namespace i2p |
|
|
|
{ |
|
|
|
{ |
|
|
|
RouterContext context; |
|
|
|
RouterContext context; |
|
|
@ -62,7 +56,7 @@ namespace i2p |
|
|
|
routerInfo.AddNTCPAddress (host.c_str(), port); |
|
|
|
routerInfo.AddNTCPAddress (host.c_str(), port); |
|
|
|
routerInfo.SetCaps (i2p::data::RouterInfo::eReachable | |
|
|
|
routerInfo.SetCaps (i2p::data::RouterInfo::eReachable | |
|
|
|
i2p::data::RouterInfo::eSSUTesting | i2p::data::RouterInfo::eSSUIntroducer); // LR, BC
|
|
|
|
i2p::data::RouterInfo::eSSUTesting | i2p::data::RouterInfo::eSSUIntroducer); // LR, BC
|
|
|
|
routerInfo.SetProperty ("netId", to_string (I2PD_NET_ID)); |
|
|
|
routerInfo.SetProperty ("netId", std::to_string (I2PD_NET_ID)); |
|
|
|
routerInfo.SetProperty ("router.version", I2P_VERSION); |
|
|
|
routerInfo.SetProperty ("router.version", I2P_VERSION); |
|
|
|
routerInfo.CreateBuffer (m_Keys); |
|
|
|
routerInfo.CreateBuffer (m_Keys); |
|
|
|
m_RouterInfo.SetRouterIdentity (GetIdentity ()); |
|
|
|
m_RouterInfo.SetRouterIdentity (GetIdentity ()); |
|
|
|