From 866cf940da076c183114ee37b089f7ed9f0e2a3c Mon Sep 17 00:00:00 2001 From: Jeff Becker Date: Mon, 27 Jun 2016 13:15:05 -0400 Subject: [PATCH] make always reachable when in meshnet mode --- Daemon.cpp | 5 +++++ SSUSession.cpp | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/Daemon.cpp b/Daemon.cpp index d6e37a8f..f8862de9 100644 --- a/Daemon.cpp +++ b/Daemon.cpp @@ -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; } diff --git a/SSUSession.cpp b/SSUSession.cpp index 17e6c305..ce70d637 100644 --- a/SSUSession.cpp +++ b/SSUSession.cpp @@ -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");