make always reachable when in meshnet mode

pull/557/head
Jeff Becker 8 years ago
parent 7868e1527e
commit 866cf940da
No known key found for this signature in database
GPG Key ID: AB950234D6EA286B

@ -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;
}

@ -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