Browse Source

make always reachable when in meshnet mode

pull/557/head
Jeff Becker 9 years ago
parent
commit
866cf940da
No known key found for this signature in database
GPG Key ID: AB950234D6EA286B
  1. 5
      Daemon.cpp
  2. 2
      SSUSession.cpp

5
Daemon.cpp

@ -197,6 +197,11 @@ namespace i2p @@ -197,6 +197,11 @@ namespace i2p
i2p::context.SetFamily (family);
if (family.length () > 0)
LogPrint(eLogInfo, "Daemon: family set to ", family);
#ifdef MESHNET
// always reachable in meshnet mode, no NAT
i2p::context.SetStatus(eRouterStatusOK);
#endif
return true;
}

2
SSUSession.cpp

@ -1079,7 +1079,7 @@ namespace transport @@ -1079,7 +1079,7 @@ namespace transport
{
// we are Alice
LogPrint (eLogDebug, "SSU: sending peer test");
auto address = i2p::context.GetRouterInfo ().GetSSUAddress ();
auto address = i2p::context.GetRouterInfo ().GetSSUAddress (false);
if (!address)
{
LogPrint (eLogInfo, "SSU is not supported. Can't send peer test");

Loading…
Cancel
Save