Browse Source

fixed #696. set netid before context::Init

pull/697/merge
orignal 8 years ago
parent
commit
2d513277f2
  1. 6
      Daemon.cpp

6
Daemon.cpp

@ -121,6 +121,9 @@ namespace i2p @@ -121,6 +121,9 @@ namespace i2p
bool precomputation; i2p::config::GetOption("precomputation.elgamal", precomputation);
i2p::crypto::InitCrypto (precomputation);
int netID; i2p::config::GetOption("netid", netID);
i2p::context.SetNetID (netID);
i2p::context.Init ();
bool ipv6; i2p::config::GetOption("ipv6", ipv6);
@ -144,9 +147,6 @@ namespace i2p @@ -144,9 +147,6 @@ 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");

Loading…
Cancel
Save