diff options
Diffstat (limited to 'node/Peer.hpp')
| -rw-r--r-- | node/Peer.hpp | 5 | 
1 files changed, 2 insertions, 3 deletions
diff --git a/node/Peer.hpp b/node/Peer.hpp index 64e9c39a..ac9de661 100644 --- a/node/Peer.hpp +++ b/node/Peer.hpp @@ -256,9 +256,8 @@ public:  	inline bool hasDirectPath() const throw() { return ((_ipv4p.addr)||(_ipv6p.addr)); }  	/** -	 * @return True if this peer has at least one direct IP address path that looks active -	 *  	 * @param now Current time +	 * @return True if this peer has at least one active or fixed direct path  	 */  	inline bool hasActiveDirectPath(uint64_t now) const throw() { return ((_ipv4p.isActive(now))||(_ipv6p.isActive(now))); } @@ -446,7 +445,7 @@ private:  		inline bool isActive(const uint64_t now) const  			throw()  		{ -			return ((addr)&&((now - lastReceive) < ZT_PEER_LINK_ACTIVITY_TIMEOUT)); +			return ((addr)&&((fixed)||((now - lastReceive) < ZT_PEER_LINK_ACTIVITY_TIMEOUT)));  		}  		template<unsigned int C>  | 
