mirror of
https://github.com/zerotier/ZeroTierOne.git
synced 2025-04-16 03:56:54 +02:00
When deciding whether to send PUSH_DIRECT_PATHS we should check global trust flag, not the one passed into receive().
This commit is contained in:
parent
b989c03416
commit
afba19e01c
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue