From 50f37d8eded01b709b8f15de609af765224415cf Mon Sep 17 00:00:00 2001 From: Jeff Date: Sat, 3 Nov 2018 09:35:54 -0400 Subject: [PATCH] don't use endpoint's paths --- llarp/service/endpoint.cpp | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/llarp/service/endpoint.cpp b/llarp/service/endpoint.cpp index b9f7625d6..aec0bebc8 100644 --- a/llarp/service/endpoint.cpp +++ b/llarp/service/endpoint.cpp @@ -1569,19 +1569,18 @@ namespace llarp if(remoteIntro.ExpiresSoon(now)) { // shift intro - MarkCurrentIntroBad(now); + if(MarkCurrentIntroBad(now)) + { + llarp::LogInfo("intro shifted"); + } } - auto path = m_PathSet->GetNewestPathByRouter(remoteIntro.router); if(!path) { - path = m_Endpoint->GetNewestPathByRouter(remoteIntro.router); - if(!path) - { - llarp::LogError("cannot encrypt and send: no path for intro ", - remoteIntro); - return; - } + llarp::LogError("cannot encrypt and send: no path for intro ", + remoteIntro); + + return; } if(m_DataHandler->GetCachedSessionKeyFor(f.T, shared))