mirror of
https://github.com/zerotier/ZeroTierOne.git
synced 2025-06-16 14:18:24 +00:00
A bit more auth cleanup in the local node.
This commit is contained in:
@ -90,9 +90,7 @@ public:
|
|||||||
*/
|
*/
|
||||||
inline bool isAllowedOnNetwork(const NetworkConfig &thisNodeNetworkConfig, const Identity &otherNodeIdentity) const
|
inline bool isAllowedOnNetwork(const NetworkConfig &thisNodeNetworkConfig, const Identity &otherNodeIdentity) const
|
||||||
{
|
{
|
||||||
if (thisNodeNetworkConfig.isPublic()) return true;
|
return (thisNodeNetworkConfig.isPublic() || (((_com.timestamp() > _comRevocationThreshold) && (thisNodeNetworkConfig.com.agreesWith(_com, otherNodeIdentity)))));
|
||||||
if (_com.timestamp() <= _comRevocationThreshold) return false;
|
|
||||||
return thisNodeNetworkConfig.com.agreesWith(_com, otherNodeIdentity);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
inline bool recentlyAssociated(const int64_t now) const
|
inline bool recentlyAssociated(const int64_t now) const
|
||||||
|
Reference in New Issue
Block a user