mirror of
https://github.com/zerotier/ZeroTierOne.git
synced 2025-06-17 22:58:22 +00:00
A few more tweaks to TCP failover... seems to be switching back and forth pretty well now!
This commit is contained in:
@ -282,14 +282,6 @@ public:
|
||||
return _lastAnnouncedTo;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param _r Runtime environment
|
||||
* @param now Current time
|
||||
* @return True if it's time to attempt TCP failover (if we have TCP_OUT paths)
|
||||
*/
|
||||
bool isTcpFailoverTime(const RuntimeEnvironment *_r,uint64_t now) const
|
||||
throw();
|
||||
|
||||
/**
|
||||
* @return Current latency or 0 if unknown (max: 65535)
|
||||
*/
|
||||
@ -508,6 +500,9 @@ public:
|
||||
}
|
||||
|
||||
private:
|
||||
bool _isTcpFailoverTime(const RuntimeEnvironment *_r,uint64_t now) const
|
||||
throw();
|
||||
|
||||
unsigned char _key[ZT_PEER_SECRET_KEY_LENGTH];
|
||||
Identity _id;
|
||||
|
||||
|
Reference in New Issue
Block a user