fill caps property based on flags

This commit is contained in:
orignal 2014-09-02 16:11:31 -04:00
parent d86e970876
commit 44dcf73300
3 changed files with 53 additions and 20 deletions

View file

@ -35,7 +35,7 @@ namespace i2p
port = m_Rnd.GenerateWord32 (9111, 30777); // I2P network ports range
routerInfo.AddSSUAddress (i2p::util::config::GetCharArg("-host", "127.0.0.1"), port, routerInfo.GetIdentHash ());
routerInfo.AddNTCPAddress (i2p::util::config::GetCharArg("-host", "127.0.0.1"), port);
routerInfo.SetProperty ("caps", "LR");
routerInfo.SetCaps (i2p::data::RouterInfo::eReachable); // LR
routerInfo.SetProperty ("coreVersion", I2P_VERSION);
routerInfo.SetProperty ("netId", "2");
routerInfo.SetProperty ("router.version", I2P_VERSION);