mirror of
https://github.com/zerotier/ZeroTierOne.git
synced 2025-04-16 03:56:54 +02:00
Fix inverted sense bug in new skip-stale-relay logic.
This commit is contained in:
parent
8f5cd0a361
commit
d452ed7db8
1 changed files with 1 additions and 1 deletions
|
@ -154,7 +154,7 @@ SharedPtr<Peer> Topology::getBestSupernode(const Address *avoid,unsigned int avo
|
|||
// Skip possibly comatose or unreachable relays
|
||||
uint64_t lds = (*sn)->lastDirectSend();
|
||||
uint64_t ldr = (*sn)->lastDirectReceive();
|
||||
if ((lds)&&(ldr > lds)&&((lds - ldr) > ZT_PEER_RELAY_CONVERSATION_LATENCY_THRESHOLD)) {
|
||||
if ((lds)&&(lds > ldr)&&((lds - ldr) > ZT_PEER_RELAY_CONVERSATION_LATENCY_THRESHOLD)) {
|
||||
++sn;
|
||||
continue;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue