Browse Source

correct netid handling

pull/690/head
orignal 8 years ago
parent
commit
4ee9b4524d
  1. 3
      Daemon.cpp
  2. 1
      RouterContext.cpp

3
Daemon.cpp

@ -138,6 +138,9 @@ namespace i2p @@ -138,6 +138,9 @@ namespace i2p
uint16_t transitTunnels; i2p::config::GetOption("limits.transittunnels", transitTunnels);
SetMaxNumTransitTunnels (transitTunnels);
int netID; i2p::config::GetOption("netid", netID);
i2p::context.SetNetID (netID);
bool isFloodfill; i2p::config::GetOption("floodfill", isFloodfill);
if (isFloodfill) {
LogPrint(eLogInfo, "Daemon: router will be floodfill");

1
RouterContext.cpp

@ -77,7 +77,6 @@ namespace i2p @@ -77,7 +77,6 @@ namespace i2p
}
routerInfo.SetCaps (i2p::data::RouterInfo::eReachable |
i2p::data::RouterInfo::eSSUTesting | i2p::data::RouterInfo::eSSUIntroducer); // LR, BC
i2p::config::GetOption("netid", m_NetID);
routerInfo.SetProperty ("netId", std::to_string (m_NetID));
routerInfo.SetProperty ("router.version", I2P_VERSION);
routerInfo.CreateBuffer (m_Keys);

Loading…
Cancel
Save