From 5ec9b651df5a86c213ad09f86d92c2c820bd0e9b Mon Sep 17 00:00:00 2001 From: Jeff Date: Tue, 23 Oct 2018 13:15:22 -0400 Subject: [PATCH] ony publish to near router --- llarp/service/endpoint.cpp | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/llarp/service/endpoint.cpp b/llarp/service/endpoint.cpp index 23986414d..1a5ff5035 100644 --- a/llarp/service/endpoint.cpp +++ b/llarp/service/endpoint.cpp @@ -515,13 +515,7 @@ namespace llarp // publish via near router RouterID location = m_Identity.pub.Addr().data(); auto path = GetEstablishedPathClosestTo(location); - if(path && PublishIntroSetVia(r, path)) - { - // publish via far router - path = GetEstablishedPathClosestTo(~location); - return path && PublishIntroSetVia(r, path); - } - return false; + return path && PublishIntroSetVia(r, path); } struct PublishIntroSetJob : public IServiceLookup