make always reachable when in meshnet mode

This commit is contained in:
Jeff Becker 2016-06-27 13:15:05 -04:00
parent 7868e1527e
commit 866cf940da
No known key found for this signature in database
GPG Key ID: AB950234D6EA286B
2 changed files with 6 additions and 1 deletions

View File

@ -198,6 +198,11 @@ namespace i2p
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;
}

View File

@ -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");