From 3e1ac818548ca8af76c935b677aa1e8f95aaa741 Mon Sep 17 00:00:00 2001 From: Arceliar Date: Sat, 2 Jun 2018 16:39:34 -0500 Subject: [PATCH] allow searches to start with nodes further from the destination than ourself --- src/yggdrasil/search.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/yggdrasil/search.go b/src/yggdrasil/search.go index de38694..588d2e0 100644 --- a/src/yggdrasil/search.go +++ b/src/yggdrasil/search.go @@ -141,7 +141,7 @@ func (s *searches) continueSearch(sinfo *searchInfo) { func (s *searches) newIterSearch(dest *NodeID, mask *NodeID) *searchInfo { sinfo := s.createSearch(dest, mask) - sinfo.toVisit = s.core.dht.lookup(dest, false) + sinfo.toVisit = s.core.dht.lookup(dest, true) sinfo.visited = make(map[NodeID]bool) return sinfo }