summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdam Ierymenko <adam.ierymenko@gmail.com>2017-02-16 09:44:04 -0800
committerAdam Ierymenko <adam.ierymenko@gmail.com>2017-02-16 09:44:04 -0800
commitafba19e01cc5db2030059485217e5fddadfa3ee1 (patch)
tree429dd7a47e60b56b32180a24a5f77ae037dc9463
parentb989c034167c97d393acfd978258dd83abb3d1d2 (diff)
downloadinfinitytier-afba19e01cc5db2030059485217e5fddadfa3ee1.tar.gz
infinitytier-afba19e01cc5db2030059485217e5fddadfa3ee1.zip
When deciding whether to send PUSH_DIRECT_PATHS we should check global trust flag, not the one passed into receive().
-rw-r--r--node/Peer.cpp2
1 files changed, 1 insertions, 1 deletions
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