From afba19e01cc5db2030059485217e5fddadfa3ee1 Mon Sep 17 00:00:00 2001 From: Adam Ierymenko Date: Thu, 16 Feb 2017 09:44:04 -0800 Subject: When deciding whether to send PUSH_DIRECT_PATHS we should check global trust flag, not the one passed into receive(). --- node/Peer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/node/Peer.cpp b/node/Peer.cpp index d5847092..25efab42 100644 --- a/node/Peer.cpp +++ b/node/Peer.cpp @@ -207,7 +207,7 @@ void Peer::received( path->sent(now); } } - } else if (trustEstablished) { + } else if (this->trustEstablished(now)) { // Send PUSH_DIRECT_PATHS if hops>0 (relayed) and we have a trust relationship (common network membership) #ifdef ZT_ENABLE_CLUSTER // Cluster mode disables normal PUSH_DIRECT_PATHS in favor of cluster-based peer redirection -- cgit v1.2.3