mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-04-28 11:47:48 +02:00
fill caps property based on flags
This commit is contained in:
parent
d86e970876
commit
44dcf73300
3 changed files with 53 additions and 20 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue